Class: Sink::Models::ModelFromSchemasRef

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

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

Constructor Details

#initialize(data = {}) ⇒ ModelFromSchemasRef

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

Parameters:

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

    . @option data [String] :name



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

def initialize(data = {}) = super

Instance Attribute Details

#name_String

Returns:

  • (String)


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

required :name_, String, api_name: :name