Class: Apia::Definitions::Scalar

Inherits:
Apia::Definition show all
Defined in:
lib/apia/definitions/scalar.rb

Instance Attribute Summary collapse

Attributes inherited from Apia::Definition

#description, #id, #name, #schema

Instance Method Summary collapse

Methods inherited from Apia::Definition

#initialize, #schema?, #setup

Constructor Details

This class inherits a constructor from Apia::Definition

Instance Attribute Details

#castObject

Returns the value of attribute cast.



10
11
12
# File 'lib/apia/definitions/scalar.rb', line 10

def cast
  @cast
end

#parseObject

Returns the value of attribute parse.



11
12
13
# File 'lib/apia/definitions/scalar.rb', line 11

def parse
  @parse
end

#validatorObject

Returns the value of attribute validator.



12
13
14
# File 'lib/apia/definitions/scalar.rb', line 12

def validator
  @validator
end

Instance Method Details

#dslObject



14
15
16
# File 'lib/apia/definitions/scalar.rb', line 14

def dsl
  @dsl ||= DSLs::Scalar.new(self)
end

#validate(errors) ⇒ Object



18
19
# File 'lib/apia/definitions/scalar.rb', line 18

def validate(errors)
end