class TempoIQ::Read
Attributes
limit[R]
name[R]
start[R]
stop[R]
Public Class Methods
new(start, stop, limit = nil)
click to toggle source
# File lib/tempoiq/models/read.rb, line 5 def initialize(start, stop, limit = nil) @name = "read" @start = start @stop = stop @limit = limit end
Public Instance Methods
to_hash()
click to toggle source
# File lib/tempoiq/models/read.rb, line 12 def to_hash hash = { "start" => start.iso8601(3), "stop" => stop.iso8601(3) } hash["limit"] = limit if limit hash end