forked from OpenNeo/impress
Emi Matchu
b0e7f2ccd5
Something in the Rails loader doesn't like that I have both a gem and a lib folder named `RocketAMF`, I think? It'll often work for the first pet load request, then on subsequent ones say `Envelope` is not defined, I'm guessing because it scrapped the gem's module in favor of mine? Idk, let's just simplify all this by making our own module. I feel like this old lib could use an overhaul and simplification anyway, but this will do for now!
18 lines
318 B
Ruby
18 lines
318 B
Ruby
require_relative 'action'
|
|
|
|
module RocketAMFExtensions
|
|
class RemoteGateway
|
|
class Service
|
|
attr_reader :gateway, :name
|
|
|
|
def initialize(gateway, name)
|
|
@gateway = gateway
|
|
@name = name
|
|
end
|
|
|
|
def action(name)
|
|
Action.new(self, name)
|
|
end
|
|
end
|
|
end
|
|
end
|