Class: ChangelogMemo::Entry
- Inherits:
-
Object
- Object
- ChangelogMemo::Entry
- Defined in:
- lib/changelog_memo/entry.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#create_date ⇒ Object
Returns the value of attribute create_date.
-
#tags ⇒ Object
Returns the value of attribute tags.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(title, body, tags, create_date) ⇒ Entry
constructor
A new instance of Entry.
Constructor Details
#initialize(title, body, tags, create_date) ⇒ Entry
Returns a new instance of Entry.
5 6 7 8 9 10 |
# File 'lib/changelog_memo/entry.rb', line 5 def initialize(title, body, , create_date) @title = title @body = body @tags = @create_date = create_date end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
3 4 5 |
# File 'lib/changelog_memo/entry.rb', line 3 def body @body end |
#create_date ⇒ Object
Returns the value of attribute create_date.
3 4 5 |
# File 'lib/changelog_memo/entry.rb', line 3 def create_date @create_date end |
#tags ⇒ Object
Returns the value of attribute tags.
3 4 5 |
# File 'lib/changelog_memo/entry.rb', line 3 def @tags end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/changelog_memo/entry.rb', line 3 def title @title end |
Instance Method Details
#==(other) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/changelog_memo/entry.rb', line 12 def==(other) @title == other.title && @body == other.body && @tags == other. && @create_date == other.create_date end |