Class: Vero::Api::Workers::BaseAPI

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain, options) ⇒ BaseAPI

Returns a new instance of BaseAPI.



18
19
20
21
22
# File 'lib/vero/api/base_api.rb', line 18

def initialize(domain, options)
  @domain = domain
  self.options = options
  setup_logging
end

Instance Attribute Details

#domainObject

Returns the value of attribute domain.



10
11
12
# File 'lib/vero/api/base_api.rb', line 10

def domain
  @domain
end

#optionsObject

Returns the value of attribute options.



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

def options
  @options
end

Class Method Details

.perform(domain, options) ⇒ Object



13
14
15
16
# File 'lib/vero/api/base_api.rb', line 13

def self.perform(domain, options)
  caller = new(domain, options)
  caller.perform
end

Instance Method Details

#performObject



24
25
26
27
# File 'lib/vero/api/base_api.rb', line 24

def perform
  validate!
  request
end