Class: VCAP::JsonSchema::OptionalKeyMarker
- Inherits:
-
Object
- Object
- VCAP::JsonSchema::OptionalKeyMarker
- Defined in:
- lib/vcap/json_schema.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ OptionalKeyMarker
constructor
A new instance of OptionalKeyMarker.
- #to_s ⇒ Object
Constructor Details
#initialize(name) ⇒ OptionalKeyMarker
Returns a new instance of OptionalKeyMarker.
160 161 162 |
# File 'lib/vcap/json_schema.rb', line 160 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
159 160 161 |
# File 'lib/vcap/json_schema.rb', line 159 def name @name end |
Instance Method Details
#to_s ⇒ Object
164 165 166 |
# File 'lib/vcap/json_schema.rb', line 164 def to_s @name.to_s end |