Class: Rack::Queries::Cache::Option

Inherits:
Struct
  • Object
show all
Defined in:
lib/rack/queries/cache.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name


6
7
8
# File 'lib/rack/queries/cache.rb', line 6

def name
  @name
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type


6
7
8
# File 'lib/rack/queries/cache.rb', line 6

def type
  @type
end

Instance Method Details

#as_jsonObject


7
8
9
# File 'lib/rack/queries/cache.rb', line 7

def as_json
  { name: name, type: type }
end