Class: ChargeBee::Ramp
Defined Under Namespace
Classes: CouponsToAdd, DiscountsToAdd, ItemTier, ItemsToAdd, ItemsToUpdate, StatusTransitionReason
Instance Attribute Summary collapse
-
#coupons_to_add ⇒ Object
Returns the value of attribute coupons_to_add.
-
#coupons_to_remove ⇒ Object
Returns the value of attribute coupons_to_remove.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#deleted ⇒ Object
Returns the value of attribute deleted.
-
#description ⇒ Object
Returns the value of attribute description.
-
#discounts_to_add ⇒ Object
Returns the value of attribute discounts_to_add.
-
#discounts_to_remove ⇒ Object
Returns the value of attribute discounts_to_remove.
-
#effective_from ⇒ Object
Returns the value of attribute effective_from.
-
#id ⇒ Object
Returns the value of attribute id.
-
#item_tiers ⇒ Object
Returns the value of attribute item_tiers.
-
#items_to_add ⇒ Object
Returns the value of attribute items_to_add.
-
#items_to_remove ⇒ Object
Returns the value of attribute items_to_remove.
-
#items_to_update ⇒ Object
Returns the value of attribute items_to_update.
-
#resource_version ⇒ Object
Returns the value of attribute resource_version.
-
#status ⇒ Object
Returns the value of attribute status.
-
#status_transition_reason ⇒ Object
Returns the value of attribute status_transition_reason.
-
#subscription_id ⇒ Object
Returns the value of attribute subscription_id.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Class Method Summary collapse
-
.create_for_subscription(id, params, env = nil, headers = {}) ⇒ Object
OPERATIONS ———–.
- .delete(id, env = nil, headers = {}) ⇒ Object
- .list(params, env = nil, headers = {}) ⇒ Object
- .retrieve(id, env = nil, headers = {}) ⇒ Object
- .update(id, params, env = nil, headers = {}) ⇒ Object
Methods inherited from Model
construct, #init_dependant, #init_dependant_list, #initialize, #inspect, #load, #method_missing, #replace_white_space_with_underscore, #to_s, uri_path
Constructor Details
This class inherits a constructor from ChargeBee::Model
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ChargeBee::Model
Instance Attribute Details
#coupons_to_add ⇒ Object
Returns the value of attribute coupons_to_add.
28 29 30 |
# File 'lib/chargebee/models/ramp.rb', line 28 def coupons_to_add @coupons_to_add end |
#coupons_to_remove ⇒ Object
Returns the value of attribute coupons_to_remove.
28 29 30 |
# File 'lib/chargebee/models/ramp.rb', line 28 def coupons_to_remove @coupons_to_remove end |
#created_at ⇒ Object
Returns the value of attribute created_at.
28 29 30 |
# File 'lib/chargebee/models/ramp.rb', line 28 def created_at @created_at end |
#deleted ⇒ Object
Returns the value of attribute deleted.
28 29 30 |
# File 'lib/chargebee/models/ramp.rb', line 28 def deleted @deleted end |
#description ⇒ Object
Returns the value of attribute description.
28 29 30 |
# File 'lib/chargebee/models/ramp.rb', line 28 def description @description end |
#discounts_to_add ⇒ Object
Returns the value of attribute discounts_to_add.
28 29 30 |
# File 'lib/chargebee/models/ramp.rb', line 28 def discounts_to_add @discounts_to_add end |
#discounts_to_remove ⇒ Object
Returns the value of attribute discounts_to_remove.
28 29 30 |
# File 'lib/chargebee/models/ramp.rb', line 28 def discounts_to_remove @discounts_to_remove end |
#effective_from ⇒ Object
Returns the value of attribute effective_from.
28 29 30 |
# File 'lib/chargebee/models/ramp.rb', line 28 def effective_from @effective_from end |
#id ⇒ Object
Returns the value of attribute id.
28 29 30 |
# File 'lib/chargebee/models/ramp.rb', line 28 def id @id end |
#item_tiers ⇒ Object
Returns the value of attribute item_tiers.
28 29 30 |
# File 'lib/chargebee/models/ramp.rb', line 28 def item_tiers @item_tiers end |
#items_to_add ⇒ Object
Returns the value of attribute items_to_add.
28 29 30 |
# File 'lib/chargebee/models/ramp.rb', line 28 def items_to_add @items_to_add end |
#items_to_remove ⇒ Object
Returns the value of attribute items_to_remove.
28 29 30 |
# File 'lib/chargebee/models/ramp.rb', line 28 def items_to_remove @items_to_remove end |
#items_to_update ⇒ Object
Returns the value of attribute items_to_update.
28 29 30 |
# File 'lib/chargebee/models/ramp.rb', line 28 def items_to_update @items_to_update end |
#resource_version ⇒ Object
Returns the value of attribute resource_version.
28 29 30 |
# File 'lib/chargebee/models/ramp.rb', line 28 def resource_version @resource_version end |
#status ⇒ Object
Returns the value of attribute status.
28 29 30 |
# File 'lib/chargebee/models/ramp.rb', line 28 def status @status end |
#status_transition_reason ⇒ Object
Returns the value of attribute status_transition_reason.
28 29 30 |
# File 'lib/chargebee/models/ramp.rb', line 28 def status_transition_reason @status_transition_reason end |
#subscription_id ⇒ Object
Returns the value of attribute subscription_id.
28 29 30 |
# File 'lib/chargebee/models/ramp.rb', line 28 def subscription_id @subscription_id end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
28 29 30 |
# File 'lib/chargebee/models/ramp.rb', line 28 def updated_at @updated_at end |
Class Method Details
.create_for_subscription(id, params, env = nil, headers = {}) ⇒ Object
OPERATIONS
35 36 37 |
# File 'lib/chargebee/models/ramp.rb', line 35 def self.create_for_subscription(id, params, env=nil, headers={}) Request.send('post', uri_path("subscriptions",id.to_s,"create_ramp"), params, env, headers) end |
.delete(id, env = nil, headers = {}) ⇒ Object
47 48 49 |
# File 'lib/chargebee/models/ramp.rb', line 47 def self.delete(id, env=nil, headers={}) Request.send('post', uri_path("ramps",id.to_s,"delete"), {}, env, headers) end |
.list(params, env = nil, headers = {}) ⇒ Object
51 52 53 |
# File 'lib/chargebee/models/ramp.rb', line 51 def self.list(params, env=nil, headers={}) Request.send_list_request('get', uri_path("ramps"), params, env, headers) end |