Class: Rafflesia::ObjectJsonInspectRequest

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

Instance Method Summary collapse

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_bytesObject

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_childrenObject

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_idObject

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