Class: Twtxt::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/twtxt/entries.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text:, date:) ⇒ Entry

Returns a new instance of Entry.



7
8
9
10
# File 'lib/twtxt/entries.rb', line 7

def initialize(text:, date:)
  @text = text
  @date = date
end

Instance Attribute Details

#dateObject (readonly)

Returns the value of attribute date.



5
6
7
# File 'lib/twtxt/entries.rb', line 5

def date
  @date
end

#textObject (readonly)

Returns the value of attribute text.



5
6
7
# File 'lib/twtxt/entries.rb', line 5

def text
  @text
end