Class: ChargeBee::SubscriptionEntitlement

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

Defined Under Namespace

Classes: Component, 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

#componentsObject

Returns the value of attribute components.



12
13
14
# File 'lib/chargebee/models/subscription_entitlement.rb', line 12

def components
  @components
end

#embeddedObject

Returns the value of attribute embedded.



12
13
14
# File 'lib/chargebee/models/subscription_entitlement.rb', line 12

def embedded
  @embedded
end

#expires_atObject

Returns the value of attribute expires_at.



12
13
14
# File 'lib/chargebee/models/subscription_entitlement.rb', line 12

def expires_at
  @expires_at
end

#feature_idObject

Returns the value of attribute feature_id.



12
13
14
# File 'lib/chargebee/models/subscription_entitlement.rb', line 12

def feature_id
  @feature_id
end

#feature_nameObject

Returns the value of attribute feature_name.



12
13
14
# File 'lib/chargebee/models/subscription_entitlement.rb', line 12

def feature_name
  @feature_name
end

#feature_unitObject

Returns the value of attribute feature_unit.



12
13
14
# File 'lib/chargebee/models/subscription_entitlement.rb', line 12

def feature_unit
  @feature_unit
end

#idObject

Returns the value of attribute id.



12
13
14
# File 'lib/chargebee/models/subscription_entitlement.rb', line 12

def id
  @id
end

#is_enabledObject

Returns the value of attribute is_enabled.



12
13
14
# File 'lib/chargebee/models/subscription_entitlement.rb', line 12

def is_enabled
  @is_enabled
end

#is_overriddenObject

Returns the value of attribute is_overridden.



12
13
14
# File 'lib/chargebee/models/subscription_entitlement.rb', line 12

def is_overridden
  @is_overridden
end

#nameObject

Returns the value of attribute name.



12
13
14
# File 'lib/chargebee/models/subscription_entitlement.rb', line 12

def name
  @name
end

#subscription_idObject

Returns the value of attribute subscription_id.



12
13
14
# File 'lib/chargebee/models/subscription_entitlement.rb', line 12

def subscription_id
  @subscription_id
end

#valueObject

Returns the value of attribute value.



12
13
14
# File 'lib/chargebee/models/subscription_entitlement.rb', line 12

def value
  @value
end

Class Method Details

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



22
23
24
# File 'lib/chargebee/models/subscription_entitlement.rb', line 22

def self.set_subscription_entitlement_availability(id, params, env=nil, headers={})
  Request.send('post', uri_path("subscriptions",id.to_s,"subscription_entitlements/set_availability"), params, env, headers)
end

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

OPERATIONS




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

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