Class: Dillo::Columns
- Inherits:
-
Collection
- Object
- Base
- Collection
- Dillo::Columns
- Defined in:
- lib/dillo.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(id) ⇒ Columns
constructor
A new instance of Columns.
- #path ⇒ Object
- #record_class ⇒ Object
Methods inherited from Collection
#create_record, #each, #record_attributes, #records
Methods included from Finders
#[], #method_missing, #respond_to?
Methods inherited from Base
#body, #inspect, #json, #prepare_request, root
Constructor Details
#initialize(id) ⇒ Columns
Returns a new instance of Columns.
222 223 224 225 |
# File 'lib/dillo.rb', line 222 def initialize(id) @id = id super() end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Dillo::Finders
Instance Method Details
#path ⇒ Object
227 228 229 |
# File 'lib/dillo.rb', line 227 def path "/api/views/#{@id}/columns.json" end |
#record_class ⇒ Object
231 232 233 |
# File 'lib/dillo.rb', line 231 def record_class Column end |