Class: PerfectReach::Contact
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- PerfectReach::Contact
- Defined in:
- lib/perfect_reach/contact.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.all(options = {}) ⇒ Object
10 11 12 13 14 |
# File 'lib/perfect_reach/contact.rb', line 10 def all( = {}) PerfectReach::Api.instance.get('contacts', )["contacts"].map do |result_hash| self.new(result_hash) end end |
Instance Method Details
#infos(options = {}) ⇒ Object
5 6 7 |
# File 'lib/perfect_reach/contact.rb', line 5 def infos( = {}) PerfectReach::Api.instance.get("contacts/#{(self.id || self.email)}", )["contact"] end |