Class: GREE::Community::Thread::Comment

Inherits:
Object
  • Object
show all
Defined in:
lib/gree-community.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, values = {}) ⇒ Comment

Returns a new instance of Comment.



63
64
65
66
67
68
# File 'lib/gree-community.rb', line 63

def initialize(id, values={})
  @id=id
  @body_text = values[:body_text]
  @user_name = values[:user_name]
  @time = values[:time]
end

Instance Attribute Details

#body_textObject (readonly)

Returns the value of attribute body_text.



71
72
73
# File 'lib/gree-community.rb', line 71

def body_text
  @body_text
end

#idObject (readonly)

Returns the value of attribute id.



69
70
71
# File 'lib/gree-community.rb', line 69

def id
  @id
end

#timeObject (readonly)

Returns the value of attribute time.



72
73
74
# File 'lib/gree-community.rb', line 72

def time
  @time
end

#user_nameObject (readonly)

Returns the value of attribute user_name.



70
71
72
# File 'lib/gree-community.rb', line 70

def user_name
  @user_name
end