Class: Quartz::Client

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

Instance Method Summary collapse

Constructor Details

#initialize(opts) ⇒ Client

Returns a new instance of Client.



3
4
5
6
7
8
9
# File 'lib/quartz/client.rb', line 3

def initialize(opts)
  @process = Quartz::GoProcess.new(opts)
  @structs = {}
  @process..each do |struct_name, |
    @structs[struct_name.to_sym] = Quartz::GoStruct.new(struct_name, , @process)
  end
end

Instance Method Details

#[](struct_name) ⇒ Object



11
12
13
# File 'lib/quartz/client.rb', line 11

def [](struct_name)
  @structs[struct_name]
end

#forked_mode!Object



19
20
21
# File 'lib/quartz/client.rb', line 19

def forked_mode!
  @process.forked_mode!
end

#structsObject



15
16
17
# File 'lib/quartz/client.rb', line 15

def structs
  @structs.keys
end