Class: Rafflesia::ObjectJsonGetRequest

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

Constant Summary collapse

HASH_ATTRS =
{
  limit: :limit,
  max_bytes: :max_bytes,
  object_id: :object_id,
  path: :path
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ ObjectJsonGetRequest

Returns a new instance of ObjectJsonGetRequest.



21
22
23
24
25
26
27
28
# File 'lib/rafflesia/objects/object_json_get_request.rb', line 21

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

Instance Attribute Details

#limitObject

Returns the value of attribute limit.



15
16
17
# File 'lib/rafflesia/objects/object_json_get_request.rb', line 15

def limit
  @limit
end

#max_bytesObject

Returns the value of attribute max_bytes.



15
16
17
# File 'lib/rafflesia/objects/object_json_get_request.rb', line 15

def max_bytes
  @max_bytes
end

#object_idObject

Returns the value of attribute object_id.



15
16
17
# File 'lib/rafflesia/objects/object_json_get_request.rb', line 15

def object_id
  @object_id
end

#pathObject

Returns the value of attribute path.



15
16
17
# File 'lib/rafflesia/objects/object_json_get_request.rb', line 15

def path
  @path
end