Module: Taksi::Interface::InstanceMethods

Defined in:
lib/taksi/interface.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



66
67
68
# File 'lib/taksi/interface.rb', line 66

def options
  @options
end

Instance Method Details

#dataObject



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)
  @options = options.freeze
  super()
end

#skeletonObject



73
74
75
# File 'lib/taksi/interface.rb', line 73

def skeleton
  self.class.skeleton
end