capsule_crm 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +13 -0
- data/README.md +22 -3
- data/capsule_crm.gemspec +1 -0
- data/lib/capsule_crm/address.rb +17 -0
- data/lib/capsule_crm/capsule_jsonable.rb +9 -0
- data/lib/capsule_crm/connection.rb +19 -8
- data/lib/capsule_crm/contactable.rb +20 -0
- data/lib/capsule_crm/contacts.rb +148 -0
- data/lib/capsule_crm/email.rb +13 -0
- data/lib/capsule_crm/errors/record_invalid.rb +6 -0
- data/lib/capsule_crm/hash_helper.rb +6 -1
- data/lib/capsule_crm/organization.rb +237 -70
- data/lib/capsule_crm/person.rb +117 -13
- data/lib/capsule_crm/phone.rb +13 -0
- data/lib/capsule_crm/version.rb +1 -1
- data/lib/capsule_crm/website.rb +17 -0
- data/lib/capsule_crm.rb +9 -3
- data/spec/lib/capsule_crm/address_spec.rb +4 -0
- data/spec/lib/capsule_crm/contacts_spec.rb +73 -0
- data/spec/lib/capsule_crm/email_spec.rb +4 -0
- data/spec/lib/capsule_crm/person_spec.rb +177 -29
- metadata +31 -10
- data/lib/capsule_crm/associations/belongs_to.rb +0 -12
- data/lib/capsule_crm/associations/has_many.rb +0 -12
- data/lib/capsule_crm/associations/has_many_proxy.rb +0 -3
- data/lib/capsule_crm/contact.rb +0 -6
- data/spec/support/create-person.json +0 -33
- data/spec/support/update-person.json +0 -5
data/lib/capsule_crm/contact.rb
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"person": {
|
3
|
-
"jobTitle": "Chairman",
|
4
|
-
"about": "A comment here",
|
5
|
-
"lastName": "Schmidt",
|
6
|
-
"title": "Mr",
|
7
|
-
"organisationName": "Google Inc",
|
8
|
-
"firstName": "Eric",
|
9
|
-
"contacts": {
|
10
|
-
"email": {
|
11
|
-
"type": "Home",
|
12
|
-
"emailAddress": "e.schmidt@google.com"
|
13
|
-
},
|
14
|
-
"website": {
|
15
|
-
"type": "work",
|
16
|
-
"webAddress": "www.google.com",
|
17
|
-
"webService": "URL"
|
18
|
-
},
|
19
|
-
"address": {
|
20
|
-
"country": "United States",
|
21
|
-
"city": "Mountain View",
|
22
|
-
"state": "CA",
|
23
|
-
"type": "Office",
|
24
|
-
"zip": "94043",
|
25
|
-
"street": "1600 Amphitheatre Parkway"
|
26
|
-
},
|
27
|
-
"phone": {
|
28
|
-
"phoneNumber": "+1 888 555555",
|
29
|
-
"type": "Mobile"
|
30
|
-
}
|
31
|
-
}
|
32
|
-
}
|
33
|
-
}
|