Class: Apia::DSLs::Object

Inherits:
Apia::DSL show all
Includes:
Concerns::HasFields
Defined in:
lib/apia/dsls/object.rb

Instance Method Summary collapse

Methods included from Concerns::HasFields

#field

Methods inherited from Apia::DSL

#description, #initialize, #name, #no_schema

Constructor Details

This class inherits a constructor from Apia::DSL

Instance Method Details

#condition(&block) ⇒ Object



13
14
15
# File 'lib/apia/dsls/object.rb', line 13

def condition(&block)
  @definition.conditions << block
end