Class: Masuda::Entry
- Inherits:
-
Object
- Object
- Masuda::Entry
- Defined in:
- lib/masuda.rb
Overview
Diary
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#diary ⇒ Object
readonly
Returns the value of attribute diary.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#tb_num ⇒ Object
Returns the value of attribute tb_num.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
- #trackbacks ⇒ Object
Instance Method Summary collapse
-
#initialize(diary, id, title, content, time, tb_num) ⇒ Entry
constructor
A new instance of Entry.
Constructor Details
#initialize(diary, id, title, content, time, tb_num) ⇒ Entry
Returns a new instance of Entry.
244 245 246 247 248 249 250 251 |
# File 'lib/masuda.rb', line 244 def initialize(diary, id, title, content, time, tb_num) @diary = diary @id = id @title = title @content = content @time = time @tb_num = tb_num end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
240 241 242 |
# File 'lib/masuda.rb', line 240 def content @content end |
#diary ⇒ Object (readonly)
Returns the value of attribute diary.
240 241 242 |
# File 'lib/masuda.rb', line 240 def diary @diary end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
240 241 242 |
# File 'lib/masuda.rb', line 240 def id @id end |
#tb_num ⇒ Object
Returns the value of attribute tb_num.
242 243 244 |
# File 'lib/masuda.rb', line 242 def tb_num @tb_num end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
240 241 242 |
# File 'lib/masuda.rb', line 240 def time @time end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
240 241 242 |
# File 'lib/masuda.rb', line 240 def title @title end |
#trackbacks ⇒ Object
253 254 255 |
# File 'lib/masuda.rb', line 253 def trackbacks @trackbacks or @trackbacks = diary.trackbacks(@id) end |