Class: ChargeBee::CustomerEntitlement

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

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

#customer_idObject

Returns the value of attribute customer_id.



4
5
6
# File 'lib/chargebee/models/customer_entitlement.rb', line 4

def customer_id
  @customer_id
end

#feature_idObject

Returns the value of attribute feature_id.



4
5
6
# File 'lib/chargebee/models/customer_entitlement.rb', line 4

def feature_id
  @feature_id
end

#is_enabledObject

Returns the value of attribute is_enabled.



4
5
6
# File 'lib/chargebee/models/customer_entitlement.rb', line 4

def is_enabled
  @is_enabled
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/chargebee/models/customer_entitlement.rb', line 4

def name
  @name
end

#subscription_idObject

Returns the value of attribute subscription_id.



4
5
6
# File 'lib/chargebee/models/customer_entitlement.rb', line 4

def subscription_id
  @subscription_id
end

#valueObject

Returns the value of attribute value.



4
5
6
# File 'lib/chargebee/models/customer_entitlement.rb', line 4

def value
  @value
end

Class Method Details

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

OPERATIONS




9
10
11
# File 'lib/chargebee/models/customer_entitlement.rb', line 9

def self.entitlements_for_customer(id, params={}, env=nil, headers={})
  Request.send('get', uri_path("customers",id.to_s,"customer_entitlements"), params, env, headers)
end