Module: Taksi::Interface::InstanceMethods
- Defined in:
- lib/taksi/interface.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
66 67 68 |
# File 'lib/taksi/interface.rb', line 66 def @options end |
Instance Method Details
#data ⇒ Object
77 78 79 80 81 82 83 84 |
# File 'lib/taksi/interface.rb', line 77 def data self.class.components.map do |component| { identifier: component.id, content: component.content_for(self) } end end |
#initialize(**options) ⇒ Object
68 69 70 71 |
# File 'lib/taksi/interface.rb', line 68 def initialize(**) @options = .freeze super() end |
#skeleton ⇒ Object
73 74 75 |
# File 'lib/taksi/interface.rb', line 73 def skeleton self.class.skeleton end |