Class: Skywriter::PropertyDefinition
- Inherits:
-
Object
- Object
- Skywriter::PropertyDefinition
- Defined in:
- lib/skywriter/resource_property.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.
52 53 54 55 |
# File 'lib/skywriter/resource_property.rb', line 52 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.
50 51 52 |
# File 'lib/skywriter/resource_property.rb', line 50 def key @key end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
50 51 52 |
# File 'lib/skywriter/resource_property.rb', line 50 def name @name end |