Class: Vero::Api::Workers::BaseAPI
Direct Known Subclasses
Events::TrackAPI, 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
15 16 17 18 19 |
# File 'lib/vero/api/base_api.rb', line 15 def initialize(domain, ) @domain = domain self. = setup_logging end |
Instance Attribute Details
#domain ⇒ Object
Returns the value of attribute domain.
8 9 10 |
# File 'lib/vero/api/base_api.rb', line 8 def domain @domain end |
#options ⇒ Object
Returns the value of attribute options.
8 9 10 |
# File 'lib/vero/api/base_api.rb', line 8 def 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, ) caller = self.new(domain, ) caller.perform end |
Instance Method Details
#perform ⇒ Object
21 22 23 24 |
# File 'lib/vero/api/base_api.rb', line 21 def perform validate! request end |