Class: Apia::DSL

Inherits:
Object
  • Object
show all
Defined in:
lib/apia/dsl.rb

Instance Method Summary collapse

Constructor Details

#initialize(definition) ⇒ DSL

Returns a new instance of DSL.



6
7
8
# File 'lib/apia/dsl.rb', line 6

def initialize(definition)
  @definition = definition
end

Instance Method Details

#description(description) ⇒ Object



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

def description(description)
  @definition.description = description
end

#name(name) ⇒ Object



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

def name(name)
  @definition.name = name
end

#no_schemaObject



18
19
20
# File 'lib/apia/dsl.rb', line 18

def no_schema
  @definition.schema = false
end