Class: Sink::Models::NestedRequestModelA

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

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

Constructor Details

#initialize(data = {}) ⇒ NestedRequestModelA

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

Parameters:

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

    . @option data [Object, nil] :foo



5
# File 'lib/sink/models/nested_request_model_a.rb', line 5

def initialize(data = {}) = super

Instance Attribute Details

#fooSink::Models::NestedRequestModelB



8
# File 'lib/sink/models/nested_request_model_a.rb', line 8

optional :foo, -> { Sink::Models::NestedRequestModelB }