class RoutificApi::Visit::TimeWindow
Attributes
end[R]
start[R]
Public Class Methods
new(params)
click to toggle source
Constructor
Optional arguments start: start of the time-window end: end of the time-window
# File lib/routific/visit.rb, line 71 def initialize(params) @start = params["start"] @end = params["end"] end
Public Instance Methods
==(another_tw)
click to toggle source
# File lib/routific/visit.rb, line 76 def ==(another_tw) self.start == another_tw.start && self.end == another_tw.end end
as_json()
click to toggle source
# File lib/routific/visit.rb, line 81 def as_json json_data = {} json_data["start"] = self.start if self.start json_data["end"] = self.end if self.end json_data end