Class: GREE::Community::Thread::Comment
- Inherits:
-
Object
- Object
- GREE::Community::Thread::Comment
- Defined in:
- lib/gree-community.rb
Instance Attribute Summary collapse
-
#body_text ⇒ Object
readonly
Returns the value of attribute body_text.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
-
#user_name ⇒ Object
readonly
Returns the value of attribute user_name.
Instance Method Summary collapse
-
#initialize(id, values = {}) ⇒ Comment
constructor
A new instance of Comment.
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_text ⇒ Object (readonly)
Returns the value of attribute body_text.
71 72 73 |
# File 'lib/gree-community.rb', line 71 def body_text @body_text end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
69 70 71 |
# File 'lib/gree-community.rb', line 69 def id @id end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
72 73 74 |
# File 'lib/gree-community.rb', line 72 def time @time end |
#user_name ⇒ Object (readonly)
Returns the value of attribute user_name.
70 71 72 |
# File 'lib/gree-community.rb', line 70 def user_name @user_name end |