Module: Skywriter::Resource::DSL
- Defined in:
- lib/skywriter/resource.rb
Defined Under Namespace
Classes: PropertyDefinition
Instance Method Summary collapse
-
#property(name) ⇒ Object
Declare a Resource property.
-
#property_definitions ⇒ Object
A list of PropertyDefinition instances defined for this Resource.
Instance Method Details
#property(name) ⇒ Object
Declare a Resource property
7 8 9 |
# File 'lib/skywriter/resource.rb', line 7 def property(name) property_definitions << PropertyDefinition.new(name) end |
#property_definitions ⇒ Object
A list of PropertyDefinition instances defined for this Resource
13 14 15 |
# File 'lib/skywriter/resource.rb', line 13 def property_definitions @property_definitions ||= [] end |