Class: Dillo::Columns

Inherits:
Collection show all
Defined in:
lib/dillo.rb

Instance Attribute Summary

Attributes inherited from Base

#connection

Instance Method Summary collapse

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

#pathObject



227
228
229
# File 'lib/dillo.rb', line 227

def path
  "/api/views/#{@id}/columns.json"
end

#record_classObject



231
232
233
# File 'lib/dillo.rb', line 231

def record_class
  Column
end