Class: TicketComment

Inherits:
Object
  • Object
show all
Defined in:
app/models/ticket_comment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attributesObject (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

#bodyObject



17
18
19
# File 'app/models/ticket_comment.rb', line 17

def body
  attributes[:body]
end

#remote_idObject



13
14
15
# File 'app/models/ticket_comment.rb', line 13

def remote_id
  attributes[:remote_id]
end

#userObject



9
10
11
# File 'app/models/ticket_comment.rb', line 9

def user
  attributes[:user]
end