Class: Rafflesia::ObjectHeadRequest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/objects/object_head_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  encoding: :encoding,
  limit: :limit,
  object_id: :object_id
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ ObjectHeadRequest

Returns a new instance of ObjectHeadRequest.



19
20
21
22
23
24
25
# File 'lib/rafflesia/objects/object_head_request.rb', line 19

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @encoding = hash[:encoding]
  @limit = hash[:limit]
  @object_id = hash[:object_id]
end

Instance Attribute Details

#encodingObject

Returns the value of attribute encoding.



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

def encoding
  @encoding
end

#limitObject

Returns the value of attribute limit.



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

def limit
  @limit
end

#object_idObject

Returns the value of attribute object_id.



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

def object_id
  @object_id
end