Class: Arrest::IdsCollection

Inherits:
Object
  • Object
show all
Defined in:
lib/arrest/helper/ids_collection.rb

Instance Method Summary collapse

Constructor Details

#initialize(parent, ids_url) ⇒ IdsCollection

Returns a new instance of IdsCollection.



4
5
6
7
8
# File 'lib/arrest/helper/ids_collection.rb', line 4

def initialize(parent, ids_url)
  @collection = nil
  @parent = parent
  @url = ids_url
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(*args, &block) ⇒ Object



10
11
12
# File 'lib/arrest/helper/ids_collection.rb', line 10

def method_missing(*args, &block)
  collection.send(*args, &block)
end

Instance Method Details

#inspectObject



14
15
16
# File 'lib/arrest/helper/ids_collection.rb', line 14

def inspect
  collection.inspect
end