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.



209
210
211
212
# File 'lib/windy.rb', line 209

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



214
215
216
# File 'lib/windy.rb', line 214

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

#record_classObject



218
219
220
# File 'lib/windy.rb', line 218

def record_class
  Column
end