Class: JotForm::API

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ API

Returns a new instance of API.



3
4
5
# File 'lib/jotform/api.rb', line 3

def initialize(key)
  @@jotform ||= JotForm.new(key)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &blk) ⇒ Object



11
12
13
# File 'lib/jotform/api.rb', line 11

def method_missing(name, *args, &blk)
  @@jotform.send name, *args, &blk
end

Class Method Details

.method_missing(name, *args, &blk) ⇒ Object



7
8
9
# File 'lib/jotform/api.rb', line 7

def self.method_missing(name, *args, &blk)
  @@jotform.send name, *args, &blk
end