Class: ChargeBee::Ramp

Inherits:
Model
  • Object
show all
Defined in:
lib/chargebee/models/ramp.rb

Defined Under Namespace

Classes: CouponsToAdd, DiscountsToAdd, ItemTier, ItemsToAdd, ItemsToUpdate, StatusTransitionReason

Instance Attribute Summary collapse

Class Method Summary collapse

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_addObject

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_removeObject

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_atObject

Returns the value of attribute created_at.



28
29
30
# File 'lib/chargebee/models/ramp.rb', line 28

def created_at
  @created_at
end

#deletedObject

Returns the value of attribute deleted.



28
29
30
# File 'lib/chargebee/models/ramp.rb', line 28

def deleted
  @deleted
end

#descriptionObject

Returns the value of attribute description.



28
29
30
# File 'lib/chargebee/models/ramp.rb', line 28

def description
  @description
end

#discounts_to_addObject

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_removeObject

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_fromObject

Returns the value of attribute effective_from.



28
29
30
# File 'lib/chargebee/models/ramp.rb', line 28

def effective_from
  @effective_from
end

#idObject

Returns the value of attribute id.



28
29
30
# File 'lib/chargebee/models/ramp.rb', line 28

def id
  @id
end

#item_tiersObject

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_addObject

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_removeObject

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_updateObject

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_versionObject

Returns the value of attribute resource_version.



28
29
30
# File 'lib/chargebee/models/ramp.rb', line 28

def resource_version
  @resource_version
end

#statusObject

Returns the value of attribute status.



28
29
30
# File 'lib/chargebee/models/ramp.rb', line 28

def status
  @status
end

#status_transition_reasonObject

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_idObject

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_atObject

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

.retrieve(id, env = nil, headers = {}) ⇒ Object



43
44
45
# File 'lib/chargebee/models/ramp.rb', line 43

def self.retrieve(id, env=nil, headers={})
  Request.send('get', uri_path("ramps",id.to_s), {}, env, headers)
end

.update(id, params, env = nil, headers = {}) ⇒ Object



39
40
41
# File 'lib/chargebee/models/ramp.rb', line 39

def self.update(id, params, env=nil, headers={})
  Request.send('post', uri_path("ramps",id.to_s,"update"), params, env, headers)
end