Class: Thanos::Item::Creator
- Inherits:
-
Object
- Object
- Thanos::Item::Creator
- Defined in:
- lib/thanos/resources/item/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
- #complete ⇒ Object
-
#initialize(data) ⇒ Creator
constructor
A new instance of Creator.
Constructor Details
#initialize(data) ⇒ Creator
Returns a new instance of Creator.
6 7 8 9 10 |
# File 'lib/thanos/resources/item/creator.rb', line 6 def initialize(data) @name = data['name'] @resource_uri = data['resourceURI'] @role = data['role'] end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/thanos/resources/item/creator.rb', line 4 def name @name end |
#resource_uri ⇒ Object (readonly)
Returns the value of attribute resource_uri.
4 5 6 |
# File 'lib/thanos/resources/item/creator.rb', line 4 def resource_uri @resource_uri end |
#role ⇒ Object (readonly)
Returns the value of attribute role.
4 5 6 |
# File 'lib/thanos/resources/item/creator.rb', line 4 def role @role end |