class ChinoRuby::FilterOption

Attributes

field[RW]
type[RW]
value[RW]

Public Class Methods

new(field, type, value) click to toggle source
# File lib/chino_ruby/classes.rb, line 1304
def initialize(field, type, value)
  check_string(field)
  check_string(type)
  check_json(value)
  self.field = field
  self.type = type
  self.value = value
end

Public Instance Methods

to_json() click to toggle source
# File lib/chino_ruby/classes.rb, line 1313
def to_json
  {"field": field, "type": type, "value": value}.to_json
end