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



9
10
11
# File 'lib/alpha_card/alpha_card_object.rb', line 9

def filled_attributes
  self.attributes.select { |key, value| value.present? }
end

#to_queryObject



5
6
7
# File 'lib/alpha_card/alpha_card_object.rb', line 5

def to_query
  Rack::Utils.build_query(self.filled_attributes)
end