Class: Mixi::Community::BBS::Comment

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_textObject (readonly)

Returns the value of attribute body_text.



131
132
133
# File 'lib/mixi-community.rb', line 131

def body_text
  @body_text
end

#idObject (readonly)

Returns the value of attribute id.



128
129
130
# File 'lib/mixi-community.rb', line 128

def id
  @id
end

#numObject (readonly)

Returns the value of attribute num.



133
134
135
# File 'lib/mixi-community.rb', line 133

def num
  @num
end

#timeObject (readonly)

Returns the value of attribute time.



132
133
134
# File 'lib/mixi-community.rb', line 132

def time
  @time
end

#user_idObject (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_nameObject (readonly)

Returns the value of attribute user_name.



130
131
132
# File 'lib/mixi-community.rb', line 130

def user_name
  @user_name
end