Class: ChargeBee::Comment
- Defined in:
- lib/chargebee/models/comment.rb
Instance Attribute Summary collapse
-
#added_by ⇒ Object
Returns the value of attribute added_by.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#entity_id ⇒ Object
Returns the value of attribute entity_id.
-
#entity_type ⇒ Object
Returns the value of attribute entity_type.
-
#id ⇒ Object
Returns the value of attribute id.
-
#notes ⇒ Object
Returns the value of attribute notes.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
-
.create(params, env = nil) ⇒ Object
OPERATIONS ———–.
- .delete(id, env = nil) ⇒ Object
- .list(params = {}, env = nil) ⇒ Object
- .retrieve(id, env = nil) ⇒ Object
Methods inherited from Model
construct, #initialize, #inspect, #load, #method_missing, #to_s
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_by ⇒ Object
Returns the value of attribute added_by.
4 5 6 |
# File 'lib/chargebee/models/comment.rb', line 4 def added_by @added_by end |
#created_at ⇒ Object
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_id ⇒ Object
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_type ⇒ Object
Returns the value of attribute entity_type.
4 5 6 |
# File 'lib/chargebee/models/comment.rb', line 4 def entity_type @entity_type end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/chargebee/models/comment.rb', line 4 def id @id end |
#notes ⇒ Object
Returns the value of attribute notes.
4 5 6 |
# File 'lib/chargebee/models/comment.rb', line 4 def notes @notes end |
#type ⇒ Object
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) ⇒ Object
OPERATIONS
9 10 11 |
# File 'lib/chargebee/models/comment.rb', line 9 def self.create(params, env=nil) Request.send('post', "/comments", params, env) end |
.delete(id, env = nil) ⇒ Object
21 22 23 |
# File 'lib/chargebee/models/comment.rb', line 21 def self.delete(id, env=nil) Request.send('post', "/comments/#{id.to_s}/delete", {}, env) end |