Class: Vero::Api::Workers::BaseAPI
Direct Known Subclasses
Events::TrackAPI, Users::DeleteAPI, Users::EditAPI, Users::EditTagsAPI, Users::ReidentifyAPI, Users::ResubscribeAPI, Users::TrackAPI, Users::UnsubscribeAPI
Instance Attribute Summary collapse
-
#domain ⇒ Object
Returns the value of attribute domain.
-
#options ⇒ Object
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(domain, options) ⇒ BaseAPI
constructor
A new instance of BaseAPI.
- #perform ⇒ Object
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, ) @domain = domain self. = setup_logging end |
Instance Attribute Details
#domain ⇒ Object
Returns the value of attribute domain.
10 11 12 |
# File 'lib/vero/api/base_api.rb', line 10 def domain @domain end |
#options ⇒ Object
Returns the value of attribute options.
11 12 13 |
# File 'lib/vero/api/base_api.rb', line 11 def @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, ) caller = new(domain, ) caller.perform end |
Instance Method Details
#perform ⇒ Object
24 25 26 27 |
# File 'lib/vero/api/base_api.rb', line 24 def perform validate! request end |