Class: Messenger::Components::Element

Inherits:
Object
  • Object
show all
Defined in:
lib/messenger/components/element.rb

Instance Method Summary collapse

Constructor Details

#initializeElement

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

#buildObject



8
9
10
# File 'lib/messenger/components/element.rb', line 8

def build
  instance_values.delete_if { |_attribute, value| value.nil? }
end