Class: ChargeBee::EntitlementOverride

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

Defined Under Namespace

Classes: EmbeddedResource

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Model

construct, #init_dependant, #init_dependant_list, #initialize, #inspect, #load, #method_missing, #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

#embeddedObject

Returns the value of attribute embedded.



8
9
10
# File 'lib/chargebee/models/entitlement_override.rb', line 8

def embedded
  @embedded
end

#entity_idObject

Returns the value of attribute entity_id.



8
9
10
# File 'lib/chargebee/models/entitlement_override.rb', line 8

def entity_id
  @entity_id
end

#entity_typeObject

Returns the value of attribute entity_type.



8
9
10
# File 'lib/chargebee/models/entitlement_override.rb', line 8

def entity_type
  @entity_type
end

#expires_atObject

Returns the value of attribute expires_at.



8
9
10
# File 'lib/chargebee/models/entitlement_override.rb', line 8

def expires_at
  @expires_at
end

#feature_idObject

Returns the value of attribute feature_id.



8
9
10
# File 'lib/chargebee/models/entitlement_override.rb', line 8

def feature_id
  @feature_id
end

#feature_nameObject

Returns the value of attribute feature_name.



8
9
10
# File 'lib/chargebee/models/entitlement_override.rb', line 8

def feature_name
  @feature_name
end

#idObject

Returns the value of attribute id.



8
9
10
# File 'lib/chargebee/models/entitlement_override.rb', line 8

def id
  @id
end

#nameObject

Returns the value of attribute name.



8
9
10
# File 'lib/chargebee/models/entitlement_override.rb', line 8

def name
  @name
end

#valueObject

Returns the value of attribute value.



8
9
10
# File 'lib/chargebee/models/entitlement_override.rb', line 8

def value
  @value
end

Class Method Details

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

OPERATIONS




14
15
16
# File 'lib/chargebee/models/entitlement_override.rb', line 14

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

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



18
19
20
# File 'lib/chargebee/models/entitlement_override.rb', line 18

def self.list_entitlement_override_for_subscription(id, params={}, env=nil, headers={})
  Request.send('get', uri_path("subscriptions",id.to_s,"entitlement_overrides"), params, env, headers)
end