Class: MultiLighthouse

Inherits:
Object
  • Object
show all
Defined in:
lib/multi_lighthouse.rb

Instance Method Summary collapse

Constructor Details

#initialize(account, token) ⇒ MultiLighthouse

Returns a new instance of MultiLighthouse.



13
14
15
16
# File 'lib/multi_lighthouse.rb', line 13

def initialize(, token)
  @account = 
  @token = token
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(meth, *args, &block) ⇒ Object



2
3
4
5
6
7
8
9
10
11
# File 'lib/multi_lighthouse.rb', line 2

def method_missing(meth, *args, &block)
  begin
    const = Lighthouse.const_get(meth)
    Lighthouse. = @account
    Lighthouse.token = @token
    return const
  rescue NameError => ne
    Lighthouse.send(meth, args, block)
  end
end