Class: JSON::Encodable::Property
- Inherits:
-
Object
- Object
- JSON::Encodable::Property
- Defined in:
- lib/json/encodable/property.rb
Instance Attribute Summary collapse
- #name ⇒ Symbol readonly
- #options ⇒ Hash{Symbol => Object} readonly
Instance Method Summary collapse
-
#initialize(name, options = {}) ⇒ Property
constructor
A new instance of Property.
Constructor Details
#initialize(name, options = {}) ⇒ Property
Returns a new instance of Property.
12 13 14 15 |
# File 'lib/json/encodable/property.rb', line 12 def initialize(name, = {}) @name = name = end |
Instance Attribute Details
#name ⇒ Symbol (readonly)
5 6 7 |
# File 'lib/json/encodable/property.rb', line 5 def name @name end |
#options ⇒ Hash{Symbol => Object} (readonly)
8 9 10 |
# File 'lib/json/encodable/property.rb', line 8 def end |