Class: Hermeneutics::Timestamp
- Inherits:
-
Object
- Object
- Hermeneutics::Timestamp
- Defined in:
- lib/hermeneutics/types.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #encode ⇒ Object
-
#initialize(value = nil) ⇒ Timestamp
constructor
A new instance of Timestamp.
- #quote ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(value = nil) ⇒ Timestamp
Returns a new instance of Timestamp.
46 47 48 |
# File 'lib/hermeneutics/types.rb', line 46 def initialize value = nil self.value = value end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
45 46 47 |
# File 'lib/hermeneutics/types.rb', line 45 def value @value end |
Instance Method Details
#encode ⇒ Object
60 61 62 |
# File 'lib/hermeneutics/types.rb', line 60 def encode @value.rfc822 end |
#quote ⇒ Object
57 58 59 |
# File 'lib/hermeneutics/types.rb', line 57 def quote to_s end |
#to_s ⇒ Object
56 |
# File 'lib/hermeneutics/types.rb', line 56 def to_s ; @value.to_s ; end |