Class: Windy::Columns

Inherits:
Collection show all
Defined in:
lib/windy.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.



221
222
223
224
# File 'lib/windy.rb', line 221

def initialize(id)
  @id = id
  super()
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Windy::Finders

Instance Method Details

#pathObject



226
227
228
# File 'lib/windy.rb', line 226

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

#record_classObject



230
231
232
# File 'lib/windy.rb', line 230

def record_class
  Column
end