Class: ChangelogMemo::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/changelog_memo/entry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, tags, create_date)
  @title = title
  @body = body
  @tags = tags
  @create_date = create_date
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



3
4
5
# File 'lib/changelog_memo/entry.rb', line 3

def body
  @body
end

#create_dateObject

Returns the value of attribute create_date.



3
4
5
# File 'lib/changelog_memo/entry.rb', line 3

def create_date
  @create_date
end

#tagsObject

Returns the value of attribute tags.



3
4
5
# File 'lib/changelog_memo/entry.rb', line 3

def tags
  @tags
end

#titleObject

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.tags &&
  @create_date == other.create_date
end