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_id ⇒ Object
readonly
Returns the value of attribute user_id.
-
#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.
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_text ⇒ Object (readonly)
Returns the value of attribute body_text.
74 75 76 |
# File 'lib/gree-community.rb', line 74 def body_text @body_text end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
71 72 73 |
# File 'lib/gree-community.rb', line 71 def id @id end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
75 76 77 |
# File 'lib/gree-community.rb', line 75 def time @time end |
#user_id ⇒ Object (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_name ⇒ Object (readonly)
Returns the value of attribute user_name.
73 74 75 |
# File 'lib/gree-community.rb', line 73 def user_name @user_name end |