Class: Apia::DSLs::Field

Inherits:
Apia::DSL show all
Defined in:
lib/apia/dsls/field.rb

Instance Method Summary collapse

Methods inherited from Apia::DSL

#description, #initialize, #name, #no_schema

Constructor Details

This class inherits a constructor from Apia::DSL

Instance Method Details

#array(value) ⇒ Object



17
18
19
# File 'lib/apia/dsls/field.rb', line 17

def array(value)
  @definition.array = value
end

#backend(&block) ⇒ Object



9
10
11
# File 'lib/apia/dsls/field.rb', line 9

def backend(&block)
  @definition.backend = block
end

#condition(&block) ⇒ Object



21
22
23
# File 'lib/apia/dsls/field.rb', line 21

def condition(&block)
  @definition.condition = block
end

#null(value) ⇒ Object



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

def null(value)
  @definition.null = value
end