Class: AlphaCard::AlphaCardObject
- Defined in:
- lib/alpha_card/alpha_card_object.rb
Instance Method Summary collapse
-
#filled_attributes ⇒ Object
order = AlphaCard::Order.new(‘1’) order.filled_attributes #=> ‘1’.
Instance Method Details
#filled_attributes ⇒ Object
order = AlphaCard::Order.new(‘1’)
order.filled_attributes #=> {orderid: '1'}
14 15 16 |
# File 'lib/alpha_card/alpha_card_object.rb', line 14 def filled_attributes self.attributes.select { |key, value| value.present? } end |