Class: Rafflesia::ObjectHashRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ObjectHashRequest
- Defined in:
- lib/rafflesia/objects/object_hash_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ content_type: :content_type, kind: :kind, path: :path }.freeze
Instance Attribute Summary collapse
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(json) ⇒ ObjectHashRequest
constructor
A new instance of ObjectHashRequest.
Constructor Details
#initialize(json) ⇒ ObjectHashRequest
Returns a new instance of ObjectHashRequest.
19 20 21 22 23 24 25 |
# File 'lib/rafflesia/objects/object_hash_request.rb', line 19 def initialize(json) super() hash = self.class.normalize(json) @content_type = hash[:content_type] @kind = hash[:kind] @path = hash[:path] end |
Instance Attribute Details
#content_type ⇒ Object
Returns the value of attribute content_type.
14 15 16 |
# File 'lib/rafflesia/objects/object_hash_request.rb', line 14 def content_type @content_type end |
#kind ⇒ Object
Returns the value of attribute kind.
14 15 16 |
# File 'lib/rafflesia/objects/object_hash_request.rb', line 14 def kind @kind end |
#path ⇒ Object
Returns the value of attribute path.
14 15 16 |
# File 'lib/rafflesia/objects/object_hash_request.rb', line 14 def path @path end |