Class: Sublayer::Components::OutputAdapters::SingleString
- Inherits:
-
Object
- Object
- Sublayer::Components::OutputAdapters::SingleString
- Defined in:
- lib/sublayer/components/output_adapters/single_string.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(options) ⇒ SingleString
constructor
A new instance of SingleString.
- #properties ⇒ Object
Constructor Details
#initialize(options) ⇒ SingleString
Returns a new instance of SingleString.
7 8 9 10 |
# File 'lib/sublayer/components/output_adapters/single_string.rb', line 7 def initialize() @name = [:name] @description = [:description] end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
5 6 7 |
# File 'lib/sublayer/components/output_adapters/single_string.rb', line 5 def description @description end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/sublayer/components/output_adapters/single_string.rb', line 5 def name @name end |
Instance Method Details
#properties ⇒ Object
12 13 14 |
# File 'lib/sublayer/components/output_adapters/single_string.rb', line 12 def properties [OpenStruct.new(name: @name, type: 'string', description: @description, required: true)] end |