Class: Apia::DSL
- Inherits:
-
Object
show all
- Defined in:
- lib/apia/dsl.rb
Direct Known Subclasses
Apia::DSLs::API, Apia::DSLs::Argument, Apia::DSLs::ArgumentSet, Apia::DSLs::Authenticator, Apia::DSLs::Controller, Apia::DSLs::Endpoint, Apia::DSLs::Enum, Apia::DSLs::Error, Apia::DSLs::Field, Apia::DSLs::Object, Apia::DSLs::Polymorph, Apia::DSLs::Scalar
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_schema ⇒ Object
18
19
20
|
# File 'lib/apia/dsl.rb', line 18
def no_schema
@definition.schema = false
end
|