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