Class: TwtxtEntry
- Inherits:
-
Object
- Object
- TwtxtEntry
- Defined in:
- lib/twtxt/file.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:) ⇒ TwtxtEntry
constructor
A new instance of TwtxtEntry.
Constructor Details
#initialize(text:, date:) ⇒ TwtxtEntry
Returns a new instance of TwtxtEntry.
34 35 36 37 |
# File 'lib/twtxt/file.rb', line 34 def initialize(text:, date:) @text = text @date = date end |
Instance Attribute Details
#date ⇒ Object (readonly)
Returns the value of attribute date.
32 33 34 |
# File 'lib/twtxt/file.rb', line 32 def date @date end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
32 33 34 |
# File 'lib/twtxt/file.rb', line 32 def text @text end |