Class: Messenger::Components::Element
- Inherits:
-
Object
- Object
- Messenger::Components::Element
- Defined in:
- lib/messenger/components/element.rb
Direct Known Subclasses
Elements::Address, Elements::Adjustment, Elements::Bubble, Elements::Item, Elements::Order, Elements::Summary
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize ⇒ Element
constructor
A new instance of Element.
Constructor Details
#initialize ⇒ Element
Returns a new instance of Element.
4 5 6 |
# File 'lib/messenger/components/element.rb', line 4 def initialize raise 'This class is abstract!' end |
Instance Method Details
#build ⇒ Object
8 9 10 |
# File 'lib/messenger/components/element.rb', line 8 def build instance_values.delete_if { |_attribute, value| value.nil? } end |