frederick_api 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/frederick_api/v2/automation.rb +11 -0
- data/lib/frederick_api/v2/contact.rb +8 -0
- data/lib/frederick_api/v2/contact_list.rb +3 -0
- data/lib/frederick_api/v2/contact_property.rb +2 -0
- data/lib/frederick_api/v2/contact_type.rb +3 -0
- data/lib/frederick_api/v2/interaction.rb +2 -0
- data/lib/frederick_api/v2/resource.rb +4 -0
- data/lib/frederick_api/version.rb +1 -1
- data/lib/frederick_api.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7585f21ab85ccf59525a4d78a455952b54d8f902
|
4
|
+
data.tar.gz: 38057990239e4c0af5b99ad07c36aa2cf6aea783
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b603fee87f814268d6b9eb6a163e1941996a33e819c983a152227a44bd3e36077a4341021533b97323dabff808683af25eaa47e57a40103bc756b3c89a08e2b
|
7
|
+
data.tar.gz: a3a0a5a8b77cdb1e76010a78a0079ca1733938cb1aaa973d8d412c3e0287d7c63d05ad36f5d2a53c0c3f460d5e124fad661664808b3404cc1eba507293dfaead
|
@@ -5,6 +5,14 @@ module FrederickAPI
|
|
5
5
|
# /v2/locations/:location_id/contacts
|
6
6
|
class Contact < Resource
|
7
7
|
belongs_to :location
|
8
|
+
has_one :contact_type
|
9
|
+
has_one :parent, class_name: 'FrederickAPI::V2::Contact'
|
10
|
+
has_one :referred_by_contact, class_name: 'FrederickAPI::V2::Contact'
|
11
|
+
has_many :children, class_name: 'FrederickAPI::V2::Contact'
|
12
|
+
has_many :referred_contacts, class_name: 'FrederickAPI::V2::Contact'
|
13
|
+
has_many :contact_lists
|
14
|
+
has_many :interactions
|
15
|
+
|
8
16
|
self.read_only_attributes += [:location_id]
|
9
17
|
end
|
10
18
|
end
|
data/lib/frederick_api.rb
CHANGED
@@ -19,6 +19,7 @@ require 'frederick_api/v2/location'
|
|
19
19
|
require 'frederick_api/v2/business_category'
|
20
20
|
|
21
21
|
# Froldoex resources
|
22
|
+
require 'frederick_api/v2/automation'
|
22
23
|
require 'frederick_api/v2/contact'
|
23
24
|
require 'frederick_api/v2/contact_property'
|
24
25
|
require 'frederick_api/v2/contact_list'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: frederick_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frederick Engineering
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json_api_client
|
@@ -35,6 +35,7 @@ files:
|
|
35
35
|
- README.md
|
36
36
|
- lib/frederick_api.rb
|
37
37
|
- lib/frederick_api/configuration.rb
|
38
|
+
- lib/frederick_api/v2/automation.rb
|
38
39
|
- lib/frederick_api/v2/business_category.rb
|
39
40
|
- lib/frederick_api/v2/contact.rb
|
40
41
|
- lib/frederick_api/v2/contact_list.rb
|