Class: Heroku::Model::ArrayProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/heroku/model/array_proxy.rb

Direct Known Subclasses

AppList

Instance Method Summary collapse

Constructor Details

#initialize(deferred_array) ⇒ ArrayProxy

Returns a new instance of ArrayProxy.



4
5
6
# File 'lib/heroku/model/array_proxy.rb', line 4

def initialize(deferred_array)
  @deferred_array = deferred_array
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(sym, *args) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/heroku/model/array_proxy.rb', line 8

def method_missing(sym, *args)
  begin
    proxy_array.send(sym, *args)
  rescue NoMethodError
    super
  end
end

Instance Method Details

#allObject



16
17
18
# File 'lib/heroku/model/array_proxy.rb', line 16

def all
  proxy_array
end