Class: Twtxt::Entry
- Inherits:
-
Object
- Object
- Twtxt::Entry
- Defined in:
- lib/twtxt/entries.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
readonly
Returns the value of attribute date.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text:, date:) ⇒ Entry
constructor
A new instance of Entry.
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
#date ⇒ Object (readonly)
Returns the value of attribute date.
5 6 7 |
# File 'lib/twtxt/entries.rb', line 5 def date @date end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
5 6 7 |
# File 'lib/twtxt/entries.rb', line 5 def text @text end |