Class: Skywriter::PropertyDefinition

Inherits:
Object
  • Object
show all
Defined in:
lib/skywriter/resource_property.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#keyObject (readonly)

Returns the value of attribute key.



50
51
52
# File 'lib/skywriter/resource_property.rb', line 50

def key
  @key
end

#nameObject (readonly)

Returns the value of attribute name.



50
51
52
# File 'lib/skywriter/resource_property.rb', line 50

def name
  @name
end