Class: Mixi::Community::BBS::Comment
- Inherits:
-
Object
- Object
- Mixi::Community::BBS::Comment
- Defined in:
- lib/mixi-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.
-
#num ⇒ Object
readonly
Returns the value of attribute num.
-
#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, params) ⇒ Comment
constructor
A new instance of Comment.
Constructor Details
#initialize(id, params) ⇒ Comment
Returns a new instance of Comment.
120 121 122 123 124 125 126 127 |
# File 'lib/mixi-community.rb', line 120 def initialize(id, params) @id = id @user_id = params[:user_id] @user_name = params[:user_name] @body_text = params[:body_text] @num = params[:num] @time = params[:time] end |
Instance Attribute Details
#body_text ⇒ Object (readonly)
Returns the value of attribute body_text.
131 132 133 |
# File 'lib/mixi-community.rb', line 131 def body_text @body_text end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
128 129 130 |
# File 'lib/mixi-community.rb', line 128 def id @id end |
#num ⇒ Object (readonly)
Returns the value of attribute num.
133 134 135 |
# File 'lib/mixi-community.rb', line 133 def num @num end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
132 133 134 |
# File 'lib/mixi-community.rb', line 132 def time @time end |
#user_id ⇒ Object (readonly)
Returns the value of attribute user_id.
129 130 131 |
# File 'lib/mixi-community.rb', line 129 def user_id @user_id end |
#user_name ⇒ Object (readonly)
Returns the value of attribute user_name.
130 131 132 |
# File 'lib/mixi-community.rb', line 130 def user_name @user_name end |