Class: Marver::Summary::Creator
- Inherits:
-
Object
- Object
- Marver::Summary::Creator
- Defined in:
- lib/marver/entities/summary/creator.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#resource_uri ⇒ Object
readonly
Returns the value of attribute resource_uri.
-
#role ⇒ Object
readonly
Returns the value of attribute role.
Instance Method Summary collapse
- #full ⇒ Object
-
#initialize(json) ⇒ Creator
constructor
A new instance of Creator.
Constructor Details
#initialize(json) ⇒ Creator
Returns a new instance of Creator.
8 9 10 11 12 |
# File 'lib/marver/entities/summary/creator.rb', line 8 def initialize(json) @name = json['name'] @resource_uri = json['resourceURI'] @role = json['role'] end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/marver/entities/summary/creator.rb', line 6 def name @name end |
#resource_uri ⇒ Object (readonly)
Returns the value of attribute resource_uri.
6 7 8 |
# File 'lib/marver/entities/summary/creator.rb', line 6 def resource_uri @resource_uri end |
#role ⇒ Object (readonly)
Returns the value of attribute role.
6 7 8 |
# File 'lib/marver/entities/summary/creator.rb', line 6 def role @role end |