Class: Recurly::BillingInfo
- Defined in:
- lib/recurly/billing_info.rb
Instance Attribute Summary collapse
-
#type ⇒ "credit_card", ...
readonly
The type of billing info.
Attributes inherited from Resource
#attributes, #etag, #response, #uri
Instance Method Summary collapse
Methods inherited from Resource
#==, all, associations, belongs_to, #changed, #changed?, #changed_attributes, #changes, collection_name, count, create, create!, define_attribute_methods, #destroy, #destroyed?, embedded!, #errors, find, find_each, first, from_response, from_xml, has_many, has_one, #initialize, member_name, member_path, #new_record?, paginate, #persist!, #persisted?, #previous_changes, #read_attribute, reflect_on_association, #reload, resource_name, #save, #save!, scope, scopes, #to_param, #to_xml, #update_attributes, #update_attributes!, #valid?, #write_attribute
Constructor Details
This class inherits a constructor from Recurly::Resource
Instance Attribute Details
#type ⇒ "credit_card", ... (readonly)
Returns The type of billing info.
32 33 34 |
# File 'lib/recurly/billing_info.rb', line 32 def type @type end |
Instance Method Details
#inspect ⇒ String
35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/recurly/billing_info.rb', line 35 def inspect attributes = self.class.attribute_names case type when 'credit_card' attributes -= %w(paypal_billing_agreement_id) when 'paypal' attributes -= %w( card_type year month start_year start_month issue_number first_six last_four ) end super attributes end |