Class: Colombo::Images

Inherits:
Container show all
Defined in:
lib/colombo/images.rb

Instance Method Summary collapse

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, options)
  @client = client
  @client.request(:get, '/images/', options) 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