Sha256: 336223754fced61e1af28607128c0d2e488199d9611ffacc2b6ef472f29751f6

Contents?: true

Size: 649 Bytes

Versions: 29

Compression:

Stored size: 649 Bytes

Contents

# encoding: UTF-8
#
# Copyright (c) 2010-2015 GoodData Corporation. All rights reserved.
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

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

29 entries across 29 versions & 2 rubygems

Version Path
gooddata-edge-0.6.27.edge lib/gooddata/mixins/author.rb
gooddata-0.6.49 lib/gooddata/mixins/author.rb
gooddata-0.6.48 lib/gooddata/mixins/author.rb
gooddata-0.6.47 lib/gooddata/mixins/author.rb
gooddata-0.6.46 lib/gooddata/mixins/author.rb
gooddata-0.6.45 lib/gooddata/mixins/author.rb
gooddata-0.6.44 lib/gooddata/mixins/author.rb
gooddata-0.6.43 lib/gooddata/mixins/author.rb
gooddata-0.6.42 lib/gooddata/mixins/author.rb
gooddata-0.6.41 lib/gooddata/mixins/author.rb
gooddata-0.6.40 lib/gooddata/mixins/author.rb
gooddata-0.6.39 lib/gooddata/mixins/author.rb
gooddata-0.6.38 lib/gooddata/mixins/author.rb
gooddata-0.6.37 lib/gooddata/mixins/author.rb
gooddata-0.6.36 lib/gooddata/mixins/author.rb
gooddata-0.6.35 lib/gooddata/mixins/author.rb
gooddata-0.6.34 lib/gooddata/mixins/author.rb
gooddata-0.6.33 lib/gooddata/mixins/author.rb
gooddata-0.6.32 lib/gooddata/mixins/author.rb
gooddata-0.6.31 lib/gooddata/mixins/author.rb