Class: TicketComment
- Inherits:
-
Object
- Object
- TicketComment
- Defined in:
- app/models/ticket_comment.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Instance Method Summary collapse
- #body ⇒ Object
-
#initialize(attributes = {}) ⇒ TicketComment
constructor
A new instance of TicketComment.
- #remote_id ⇒ Object
- #user ⇒ Object
Constructor Details
#initialize(attributes = {}) ⇒ TicketComment
Returns a new instance of TicketComment.
3 4 5 |
# File 'app/models/ticket_comment.rb', line 3 def initialize(attributes={}) @attributes = attributes end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
7 8 9 |
# File 'app/models/ticket_comment.rb', line 7 def attributes @attributes end |
Instance Method Details
#body ⇒ Object
17 18 19 |
# File 'app/models/ticket_comment.rb', line 17 def body attributes[:body] end |
#remote_id ⇒ Object
13 14 15 |
# File 'app/models/ticket_comment.rb', line 13 def remote_id attributes[:remote_id] end |
#user ⇒ Object
9 10 11 |
# File 'app/models/ticket_comment.rb', line 9 def user attributes[:user] end |