Class: G5RepsClient::Client
- Inherits:
-
Object
- Object
- G5RepsClient::Client
- Defined in:
- lib/g5_reps_client/client.rb
Instance Method Summary collapse
- #get_communities ⇒ Object
- #get_pick_lists(community_id) ⇒ Object
-
#initialize(key, wsdl) ⇒ Client
constructor
A new instance of Client.
- #save_lead(community_id, lead) ⇒ Object
Constructor Details
#initialize(key, wsdl) ⇒ Client
Returns a new instance of Client.
5 6 7 8 |
# File 'lib/g5_reps_client/client.rb', line 5 def initialize(key, wsdl) @key = key @wsdl = wsdl end |
Instance Method Details
#get_communities ⇒ Object
10 11 12 |
# File 'lib/g5_reps_client/client.rb', line 10 def get_communities request = GetCommunitiesRequest.execute(@key, @wsdl) end |
#get_pick_lists(community_id) ⇒ Object
14 15 16 |
# File 'lib/g5_reps_client/client.rb', line 14 def get_pick_lists(community_id) request = GetPickListsRequest.execute(@key, @wsdl, "#{community_id}") end |
#save_lead(community_id, lead) ⇒ Object
18 19 20 |
# File 'lib/g5_reps_client/client.rb', line 18 def save_lead(community_id, lead) request = SaveLeadRequest.execute(@key, @wsdl, "#{community_id}", lead) end |