Class: Metro::PropertyDefinition

Inherits:
Object
  • Object
show all
Defined in:
lib/metro/models/properties/property.rb

Overview

A property definition contains the name of the property and the options specified with it. This is used internally to define properties and sub-properties.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, options) ⇒ PropertyDefinition

Returns a new instance of PropertyDefinition.



197
198
199
200
# File 'lib/metro/models/properties/property.rb', line 197

def initialize(name,options)
  @name = name
  @options = options
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



195
196
197
# File 'lib/metro/models/properties/property.rb', line 195

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options.



195
196
197
# File 'lib/metro/models/properties/property.rb', line 195

def options
  @options
end