class TempoIQ::Query
Attributes
action[R]
pipeline[R]
search[R]
Public Class Methods
new(search, action, pipeline = nil)
click to toggle source
# File lib/tempoiq/models/query.rb, line 5 def initialize(search, action, pipeline = nil) @search = search @action = action @pipeline = pipeline end
Public Instance Methods
to_hash()
click to toggle source
# File lib/tempoiq/models/query.rb, line 11 def to_hash hash = { "search" => search.to_hash, action.name => action.to_hash } hash["fold"] = pipeline.to_hash if pipeline hash end