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.



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

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

Instance Attribute Details

#body_textObject (readonly)

Returns the value of attribute body_text.



74
75
76
# File 'lib/gree-community.rb', line 74

def body_text
  @body_text
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#timeObject (readonly)

Returns the value of attribute time.



75
76
77
# File 'lib/gree-community.rb', line 75

def time
  @time
end

#user_idObject (readonly)

Returns the value of attribute user_id.



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

def user_id
  @user_id
end

#user_nameObject (readonly)

Returns the value of attribute user_name.



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

def user_name
  @user_name
end