Class: Rack::Queries::Cache::Option
- Inherits:
-
Struct
- Object
- Struct
- Rack::Queries::Cache::Option
- Defined in:
- lib/rack/queries/cache.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
6 7 8 |
# File 'lib/rack/queries/cache.rb', line 6 def name @name end |
#type ⇒ Object
Returns the value of attribute type
6 7 8 |
# File 'lib/rack/queries/cache.rb', line 6 def type @type end |
Instance Method Details
#as_json ⇒ Object
7 8 9 |
# File 'lib/rack/queries/cache.rb', line 7 def as_json { name: name, type: type } end |