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