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



15
16
17
18
19
# File 'lib/vero/api/base_api.rb', line 15

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

Instance Attribute Details

#domainObject

Returns the value of attribute domain.



8
9
10
# File 'lib/vero/api/base_api.rb', line 8

def domain
  @domain
end

#optionsObject

Returns the value of attribute options.



8
9
10
# File 'lib/vero/api/base_api.rb', line 8

def options
  @options
end

Class Method Details

.perform(domain, options) ⇒ Object



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

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

Instance Method Details

#performObject



21
22
23
24
# File 'lib/vero/api/base_api.rb', line 21

def perform
  validate!
  request
end