Class: Braintree::Descriptor
- Inherits:
-
Object
- Object
- Braintree::Descriptor
- Defined in:
- lib/braintree_rails/braintree_ext.rb
Instance Method Summary collapse
Instance Method Details
#==(other) ⇒ Object
11 12 13 14 |
# File 'lib/braintree_rails/braintree_ext.rb', line 11 def ==(other) return false unless other.is_a?(Descriptor) name == other.name && phone == other.phone end |
#attributes_for(action) ⇒ Object
16 17 18 |
# File 'lib/braintree_rails/braintree_ext.rb', line 16 def attributes_for(action) {:name => name, :phone => phone} end |