Class: AlphaCard::AlphaCardObject
- Inherits:
-
Object
- Object
- AlphaCard::AlphaCardObject
- Defined in:
- lib/alpha_card/alpha_card_object.rb
Overview
Parent class for each Alpha Card Gateway object, such as Order, Billing, Sale and others.
Instance Method Summary collapse
-
#filled_attributes ⇒ Hash
Returns the
Hash
with only filled attributes of theAlphaCard::AlphaCardObject
.
Instance Method Details
#filled_attributes ⇒ Hash
Returns the Hash
with only filled attributes of the AlphaCard::AlphaCardObject
.
20 21 22 |
# File 'lib/alpha_card/alpha_card_object.rb', line 20 def filled_attributes attributes.select { |_, value| !value.nil? } end |