Class: TwtxtEntry

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dateObject (readonly)

Returns the value of attribute date.



32
33
34
# File 'lib/twtxt/file.rb', line 32

def date
  @date
end

#textObject (readonly)

Returns the value of attribute text.



32
33
34
# File 'lib/twtxt/file.rb', line 32

def text
  @text
end