class Markdo::TaskAttribute
Attributes
key[R]
value[R]
Public Class Methods
new(key, value)
click to toggle source
# File lib/markdo/models/task_attribute.rb, line 7 def initialize(key, value) @key = key @value = value end
Public Instance Methods
==(other)
click to toggle source
# File lib/markdo/models/task_attribute.rb, line 18 def ==(other) other.key == key && other.value == value end
date_value()
click to toggle source
# File lib/markdo/models/task_attribute.rb, line 12 def date_value Date.parse(value.to_s) rescue ArgumentError nil end