Class: Magi::Proprietary::Property
- Inherits:
-
Object
- Object
- Magi::Proprietary::Property
- Defined in:
- lib/magi/proprietary.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(name, options = {}) ⇒ Property
constructor
A new instance of Property.
- #type ⇒ Object
Constructor Details
#initialize(name, options = {}) ⇒ Property
Returns a new instance of Property.
47 48 49 |
# File 'lib/magi/proprietary.rb', line 47 def initialize(name, = {}) @name, @options = name, end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
45 46 47 |
# File 'lib/magi/proprietary.rb', line 45 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
45 46 47 |
# File 'lib/magi/proprietary.rb', line 45 def @options end |
Instance Method Details
#type ⇒ Object
51 52 53 |
# File 'lib/magi/proprietary.rb', line 51 def type [:type] || :string end |