Class: ChargeBee::SubscriptionEntitlement

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

Defined Under Namespace

Classes: Component

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

#componentsObject

Returns the value of attribute components.



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

def components
  @components
end

#effective_fromObject

Returns the value of attribute effective_from.



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

def effective_from
  @effective_from
end

#expires_atObject

Returns the value of attribute expires_at.



8
9
10
# File 'lib/chargebee/models/subscription_entitlement.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/subscription_entitlement.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/subscription_entitlement.rb', line 8

def feature_name
  @feature_name
end

#feature_typeObject

Returns the value of attribute feature_type.



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

def feature_type
  @feature_type
end

#feature_unitObject

Returns the value of attribute feature_unit.



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

def feature_unit
  @feature_unit
end

#is_enabledObject

Returns the value of attribute is_enabled.



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

def is_enabled
  @is_enabled
end

#is_overriddenObject

Returns the value of attribute is_overridden.



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

def is_overridden
  @is_overridden
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#schedule_statusObject

Returns the value of attribute schedule_status.



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

def schedule_status
  @schedule_status
end

#subscription_idObject

Returns the value of attribute subscription_id.



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

def subscription_id
  @subscription_id
end

#valueObject

Returns the value of attribute value.



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

def value
  @value
end

Class Method Details

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



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

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




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

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