Sha256: 415ebd9b18fce336b931f527ab6ed366c5dbf0ac627b94f5fa1e5d7da449d502

Contents?: true

Size: 448 Bytes

Versions: 9

Compression:

Stored size: 448 Bytes

Contents

# encoding: UTF-8

module GoodData
  module Mixin
    module Author
      # Gets author of an object
      #
      # @return [GoodData::Profile] object author
      def author
        tmp = client.get(author_uri)
        client.create(GoodData::Profile, tmp, project: project)
      end

      # Gets author URI of an object
      #
      # @return [String] object author URI
      def author_uri
        meta['author']
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gooddata-0.6.20 lib/gooddata/mixins/author.rb
gooddata-0.6.19 lib/gooddata/mixins/author.rb
gooddata-0.6.18 lib/gooddata/mixins/author.rb
gooddata-0.6.17 lib/gooddata/mixins/author.rb
gooddata-0.6.16 lib/gooddata/mixins/author.rb
gooddata-0.6.15 lib/gooddata/mixins/author.rb
gooddata-0.6.14 lib/gooddata/mixins/author.rb
gooddata-0.6.13 lib/gooddata/mixins/author.rb
gooddata-0.6.12 lib/gooddata/mixins/author.rb