Class: EngagingNetworks::Base

Inherits:
Vertebrae::Model
  • Object
show all
Defined in:
lib/engaging_networks/base.rb

Direct Known Subclasses

Action, Campaign, Supporter

Instance Method Summary collapse

Instance Method Details

#action_pathObject



16
17
18
# File 'lib/engaging_networks/base.rb', line 16

def action_path
  "/ea-action/action"
end

#data_pathObject



8
9
10
# File 'lib/engaging_networks/base.rb', line 8

def data_path
  "/ea-dataservice/data.service"
end

#export_pathObject



12
13
14
# File 'lib/engaging_networks/base.rb', line 12

def export_path
  "/ea-dataservice/export.service"
end

#import_pathObject



4
5
6
# File 'lib/engaging_networks/base.rb', line 4

def import_path
  "/ea-dataservice/import.service"
end

#scrapeObject



20
21
22
# File 'lib/engaging_networks/base.rb', line 20

def scrape
  @scrape ||= EngagingNetworks::Scrape::Client.new(username: client.connection.configuration.options[:username], password: client.connection.configuration.options[:password])
end