nylas 4.2.0 → 4.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nylas.rb +2 -0
- data/lib/nylas/contact.rb +1 -0
- data/lib/nylas/contact_group.rb +12 -0
- data/lib/nylas/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4d46688295bf8c7e3c07d743c30b4450823fe0e
|
4
|
+
data.tar.gz: 7d3cf939484ace373e1cc4678c9568095d473a04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 928b321e8608c1e682282e889810cddec1061e5dde76851dd149d73cdf42d883e06ac4fae259f277f970c3500d400cbcddaae3e66a9f63b58640208dad533664
|
7
|
+
data.tar.gz: 1f6e543316862883b4da9e577d43993f87a7904854b9ea96754f6b78d74f354e39bd452d6634c65845ac53056e28a28cb16c5083972de68e7393c8cd852d4965
|
data/lib/nylas.rb
CHANGED
@@ -42,6 +42,7 @@ require_relative "nylas/deltas_collection"
|
|
42
42
|
require_relative "nylas/account"
|
43
43
|
require_relative "nylas/calendar"
|
44
44
|
require_relative "nylas/contact"
|
45
|
+
require_relative "nylas/contact_group"
|
45
46
|
require_relative "nylas/current_account"
|
46
47
|
require_relative "nylas/deltas"
|
47
48
|
require_relative "nylas/delta"
|
@@ -82,4 +83,5 @@ module Nylas
|
|
82
83
|
Types.registry[:timespan] = Types::ModelType.new(model: Timespan)
|
83
84
|
Types.registry[:web_page] = Types::ModelType.new(model: WebPage)
|
84
85
|
Types.registry[:nylas_date] = NylasDateType.new
|
86
|
+
Types.registry[:contact_group] = Types::ModelType.new(model: ContactGroup)
|
85
87
|
end
|
data/lib/nylas/contact.rb
CHANGED
@@ -29,6 +29,7 @@ module Nylas
|
|
29
29
|
attribute :notes, :string
|
30
30
|
attribute :web_page, :web_page
|
31
31
|
|
32
|
+
has_n_of_attribute :groups, :contact_group
|
32
33
|
has_n_of_attribute :emails, :email_address
|
33
34
|
has_n_of_attribute :im_addresses, :im_address
|
34
35
|
has_n_of_attribute :physical_addresses, :physical_address
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module Nylas
|
2
|
+
# Structure to represent the Contact Group schema
|
3
|
+
# @see https://docs.nylas.com/reference#contactsid
|
4
|
+
class ContactGroup
|
5
|
+
include Model::Attributable
|
6
|
+
attribute :id, :string
|
7
|
+
attribute :object, :string
|
8
|
+
attribute :account_id, :string
|
9
|
+
attribute :name, :string
|
10
|
+
attribute :path, :string
|
11
|
+
end
|
12
|
+
end
|
data/lib/nylas/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nylas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.
|
4
|
+
version: 4.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nylas, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -253,6 +253,7 @@ files:
|
|
253
253
|
- lib/nylas/collection.rb
|
254
254
|
- lib/nylas/constraints.rb
|
255
255
|
- lib/nylas/contact.rb
|
256
|
+
- lib/nylas/contact_group.rb
|
256
257
|
- lib/nylas/current_account.rb
|
257
258
|
- lib/nylas/delta.rb
|
258
259
|
- lib/nylas/deltas.rb
|
@@ -319,7 +320,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
319
320
|
version: '0'
|
320
321
|
requirements: []
|
321
322
|
rubyforge_project:
|
322
|
-
rubygems_version: 2.
|
323
|
+
rubygems_version: 2.5.2
|
323
324
|
signing_key:
|
324
325
|
specification_version: 4
|
325
326
|
summary: Gem for interacting with the Nylas API
|