Class: Rafflesia::ObjectHashRequest

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_typeObject

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

#kindObject

Returns the value of attribute kind.



14
15
16
# File 'lib/rafflesia/objects/object_hash_request.rb', line 14

def kind
  @kind
end

#pathObject

Returns the value of attribute path.



14
15
16
# File 'lib/rafflesia/objects/object_hash_request.rb', line 14

def path
  @path
end