Class: Skywriter::Resource::DSL::PropertyDefinition
- Inherits:
-
Object
- Object
- Skywriter::Resource::DSL::PropertyDefinition
- Defined in:
- lib/skywriter/resource.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ PropertyDefinition
constructor
A new instance of PropertyDefinition.
Constructor Details
#initialize(name) ⇒ PropertyDefinition
Returns a new instance of PropertyDefinition.
30 31 32 33 |
# File 'lib/skywriter/resource.rb', line 30 def initialize(name) @name = name.to_s @key = name.to_s.underscore.to_sym end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
28 29 30 |
# File 'lib/skywriter/resource.rb', line 28 def key @key end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
28 29 30 |
# File 'lib/skywriter/resource.rb', line 28 def name @name end |