Class: ChargeBee::PersonalizedOffer

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

Defined Under Namespace

Classes: Content, Option

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, #respond_to_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

#contentObject

Returns the value of attribute content.



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

def content
  @content
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#offer_idObject

Returns the value of attribute offer_id.



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

def offer_id
  @offer_id
end

#optionsObject

Returns the value of attribute options.



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

def options
  @options
end

Class Method Details

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

OPERATIONS




17
18
19
20
21
22
23
# File 'lib/chargebee/models/personalized_offer.rb', line 17

def self.personalized_offers(params, env=nil, headers={})
  jsonKeys = { 
      :custom => 0,
  }
  options = {}
  Request.send('post', uri_path("personalized_offers"), params, env, headers, "grow", true, jsonKeys, options)
end