Class: Sink::Models::ResponseNestedArrayResponse

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/sink/models/response_nested_array_response.rb

Defined Under Namespace

Classes: Object

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#[], #deconstruct_keys, #inspect, #to_h, #to_s

Constructor Details

#initialize(data = {}) ⇒ ResponseNestedArrayResponse

Create a new instance of ResponseNestedArrayResponse from a Hash of raw data.

Parameters:

  • data (Hash{Symbol => Object}) (defaults to: {}) —

    . @option data [Array] :objects

    
    
    5
    # File 'lib/sink/models/response_nested_array_response.rb', line 5
    
    def initialize(data = {}) = super

    Instance Attribute Details

    #objects ⇒ Array<Sink::Models::ResponseNestedArrayResponse::Object>

    
    
    8
    # File 'lib/sink/models/response_nested_array_response.rb', line 8
    
    required :objects, Sink::ArrayOf.new(-> { Sink::Models::ResponseNestedArrayResponse::Object })