Class: Hermeneutics::Timestamp

Inherits:
Object
  • Object
show all
Defined in:
lib/hermeneutics/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#valueObject

Returns the value of attribute value.



45
46
47
# File 'lib/hermeneutics/types.rb', line 45

def value
  @value
end

Instance Method Details

#encodeObject



60
61
62
# File 'lib/hermeneutics/types.rb', line 60

def encode
  @value.rfc822
end

#quoteObject



57
58
59
# File 'lib/hermeneutics/types.rb', line 57

def quote
  to_s
end

#to_sObject



56
# File 'lib/hermeneutics/types.rb', line 56

def to_s ; @value.to_s ; end