Class: Skooma::Instance::Attribute

Inherits:
JSONSkooma::JSONNode
  • Object
show all
Includes:
Coercible
Defined in:
lib/skooma/instance.rb

Direct Known Subclasses

Response

Instance Method Summary collapse

Methods included from Coercible

#coerce, coerce_array_items, coerce_value, #deep_coerce, deep_coerce_value, prefix_schema, schema_object?

Constructor Details

#initialize(value, **item_params) ⇒ Attribute

Returns a new instance of Attribute.



111
112
113
# File 'lib/skooma/instance.rb', line 111

def initialize(value, **item_params)
  super(value, **item_params.merge(item_class: Attribute))
end