Class: ChargeBee::Entitlement

Inherits:
Model
  • Object
show all
Defined in:
lib/chargebee/models/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

#entity_idObject

Returns the value of attribute entity_id.



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

def entity_id
  @entity_id
end

#entity_typeObject

Returns the value of attribute entity_type.



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

def entity_type
  @entity_type
end

#feature_idObject

Returns the value of attribute feature_id.



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

def feature_id
  @feature_id
end

#feature_nameObject

Returns the value of attribute feature_name.



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

def feature_name
  @feature_name
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#valueObject

Returns the value of attribute value.



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

def value
  @value
end

Class Method Details

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



13
14
15
# File 'lib/chargebee/models/entitlement.rb', line 13

def self.create(params, env=nil, headers={})
  Request.send('post', uri_path("entitlements"), params, env, headers)
end

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

OPERATIONS




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

def self.list(params={}, env=nil, headers={})
  Request.send_list_request('get', uri_path("entitlements"), params, env, headers)
end