Class: AlphaCard::AlphaCardObject

Inherits:
Object
  • Object
show all
Defined in:
lib/alpha_card/alpha_card_object.rb

Direct Known Subclasses

Account, Billing, Order, Sale, Shipping

Instance Method Summary collapse

Instance Method Details

#filled_attributesObject

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