Class: Rafflesia::ObjectJsonGetRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ObjectJsonGetRequest
- 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
-
#limit ⇒ Object
Returns the value of attribute limit.
-
#max_bytes ⇒ Object
Returns the value of attribute max_bytes.
-
#object_id ⇒ Object
Returns the value of attribute object_id.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(json) ⇒ ObjectJsonGetRequest
constructor
A new instance of ObjectJsonGetRequest.
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
#limit ⇒ Object
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_bytes ⇒ Object
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_id ⇒ Object
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 |
#path ⇒ Object
Returns the value of attribute path.
15 16 17 |
# File 'lib/rafflesia/objects/object_json_get_request.rb', line 15 def path @path end |