Class: Colombo::Images
- Defined in:
- lib/colombo/images.rb
Instance Method Summary collapse
-
#initialize(client, options) ⇒ Images
constructor
A new instance of Images.
Methods inherited from Container
#find, #method_missing, #run_find_by_attr
Constructor Details
#initialize(client, options) ⇒ Images
Returns a new instance of Images.
8 9 10 11 12 13 14 15 |
# File 'lib/colombo/images.rb', line 8 def initialize(client, ) @client = client @client.request(:get, '/images/', ) do |response| response['images'].each do |image| self << Image.new(@client, image) end end end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Colombo::Container