Class: Malachite::Client

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, args) ⇒ Client

Returns a new instance of Client.



3
4
5
6
# File 'lib/malachite/client.rb', line 3

def initialize(name, args)
  @name = name
  @args = args
end

Class Method Details

.method_missing(name, args) ⇒ Object



12
13
14
# File 'lib/malachite/client.rb', line 12

def self.method_missing(name, args)
  new(name, args).call
end

Instance Method Details

#callObject



8
9
10
# File 'lib/malachite/client.rb', line 8

def call
  response_from_json(json_function_result)
end