Sha256: 75ca6c01474cd0ff20ad2315470c1fd7031e262645ddd923c3c5c9be4b8269fb
Contents?: true
Size: 1.44 KB
Versions: 6
Compression:
Stored size: 1.44 KB
Contents
# encoding: UTF-8 module GoodData class Invitation def initialize(json) @json = json end def author # TODO: Return object instead @json['invitation']['meta']['author'] end def contributor # TODO: Return object instead @json['invitation']['meta']['contributor'] end def created DateTime.parse(@json['invitation']['meta']['created']) end def email @json['invitation']['content']['email'] end def first_name @json['invitation']['content']['firstname'] end def first_name @json['invitation']['content']['firstname'] end def phone @json['invitation']['content']['phone'] end def profile # TODO: Return object instead @json['invitation']['links']['profile'] end def project # TODO: Return object instead @json['invitation']['links']['project'] end def project_name @json['invitation']['content']['projectname'] end def role # TODO: Return object instead @json['invitation']['content']['role'] end def status @json['invitation']['content']['status'] end def summary @json['invitation']['content']['summary'] end def title @json['invitation']['content']['title'] end def updated DateTime.parse(@json['invitation']['meta']['updated']) end def uri @json['invitation']['links']['self'] end end end
Version data entries
6 entries across 6 versions & 1 rubygems