Class: ChargeBee::Comment

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

#added_byObject

Returns the value of attribute added_by.



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

def added_by
  @added_by
end

#business_entity_idObject

Returns the value of attribute business_entity_id.



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

def business_entity_id
  @business_entity_id
end

#created_atObject

Returns the value of attribute created_at.



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

def created_at
  @created_at
end

#entity_idObject

Returns the value of attribute entity_id.



4
5
6
# File 'lib/chargebee/models/comment.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/comment.rb', line 4

def entity_type
  @entity_type
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#notesObject

Returns the value of attribute notes.



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

def notes
  @notes
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end

Class Method Details

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

OPERATIONS




9
10
11
12
13
14
15
16
# File 'lib/chargebee/models/comment.rb', line 9

def self.create(params, env=nil, headers={})
  jsonKeys = { 
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("comments"), params, env, headers,nil, false, jsonKeys, options)
end

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



32
33
34
35
36
37
38
39
# File 'lib/chargebee/models/comment.rb', line 32

def self.delete(id, env=nil, headers={})
  jsonKeys = { 
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("comments",id.to_s,"delete"), {}, env, headers,nil, false, jsonKeys, options)
end

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



25
26
27
28
29
30
# File 'lib/chargebee/models/comment.rb', line 25

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

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



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

def self.retrieve(id, env=nil, headers={})
  jsonKeys = { 
  }
  options = {}
  Request.send('get', uri_path("comments",id.to_s), {}, env, headers,nil, false, jsonKeys, options)
end