Class: IronBank::Resources::ProductRatePlan
- Inherits:
-
IronBank::Resource
- Object
- IronBank::Resource
- IronBank::Resources::ProductRatePlan
- Defined in:
- lib/iron_bank/resources/product_rate_plan.rb
Overview
A product rate plan belongs to a product and holds many product rate plan charges. It represents what a customer is subscribing to.
Instance Attribute Summary
Attributes inherited from IronBank::Resource
Class Method Summary collapse
-
.excluded_fields ⇒ Object
NOTE: Zuora doesn’t let us query for more than one product rate plan ‘ActiveCurrencies` at a time.
- .single_resource_query_fields ⇒ Object
Instance Method Summary collapse
Methods inherited from IronBank::Resource
#==, #id, #initialize, #inspect, object_name, #reload, #remove_instance_vars, with_cache, with_local_records
Methods included from Associations::ClassMethods
Methods included from Metadata
#excluded_fields, #fields, #query_custom_fields, #query_fields, #reset, #schema, #single_resource_query_fields, #with_schema
Methods included from Queryable
#all, #find, #find_each, #first, #where
Methods included from Associations
Constructor Details
This class inherits a constructor from IronBank::Resource
Class Method Details
.excluded_fields ⇒ Object
NOTE: Zuora doesn’t let us query for more than one product rate plan
`ActiveCurrencies` at a time
11 12 13 |
# File 'lib/iron_bank/resources/product_rate_plan.rb', line 11 def self.excluded_fields super + single_resource_query_fields end |
.single_resource_query_fields ⇒ Object
15 16 17 |
# File 'lib/iron_bank/resources/product_rate_plan.rb', line 15 def self.single_resource_query_fields %w[ActiveCurrencies] end |