Module: GoodData::Mixin::Author

Included in:
Project, ProjectRole, UserGroup
Defined in:
lib/gooddata/mixins/author.rb

Instance Method Summary collapse

Instance Method Details

#authorGoodData::Profile

Gets author of an object

Returns:



13
14
15
16
# File 'lib/gooddata/mixins/author.rb', line 13

def author
  tmp = client.get(author_uri)
  client.create(GoodData::Profile, tmp, project: project)
end

#author_uriString

Gets author URI of an object

Returns:

  • (String)

    object author URI



21
22
23
# File 'lib/gooddata/mixins/author.rb', line 21

def author_uri
  meta['author']
end