user_engage 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/user_engage/company.rb +4 -2
- data/lib/user_engage/user.rb +4 -4
- data/lib/user_engage/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66d8ad78a363224162ad89c1fb97a6ef92596c41bcc2b3e217f32fa2eb084394
|
4
|
+
data.tar.gz: 48f234504a5b6ec623ca58311b71129b33cba499ab862d3ad50e84934cf90efa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48683a08022329f6958b98f3f8cf119a0b1421aff6868a99a9c71ab61f9e51f718d809ff9f7d7c9017984757b0d36c033df3724f48ece54c022935ebac1c6826
|
7
|
+
data.tar.gz: 606f8a9e741023d5c67b5070fe63a5ffdce2683f4a4217f72dbfdddbdd40e815685f6fbd720511bb9a3c0c468e519d5a69b5d0d60c370076ae5e2f71fc425f50
|
data/Gemfile.lock
CHANGED
data/lib/user_engage/company.rb
CHANGED
@@ -8,6 +8,7 @@ require 'user_engage/operation/destroy'
|
|
8
8
|
require 'user_engage/operation/update_attributes'
|
9
9
|
|
10
10
|
require 'user_engage/attribute'
|
11
|
+
require 'user_engage/tag'
|
11
12
|
|
12
13
|
module UserEngage
|
13
14
|
class Company < BaseModel
|
@@ -25,7 +26,7 @@ module UserEngage
|
|
25
26
|
################
|
26
27
|
attribute :address, Types::String
|
27
28
|
attribute :approx_employees, Types::Integer
|
28
|
-
attribute :attributes, Types::Array.of(UserEngage::Attribute)
|
29
|
+
attribute :attributes, Types::Coercible::Array.of(UserEngage::Attribute)
|
29
30
|
attribute :city, Types::String
|
30
31
|
attribute :company_id, Types::Integer
|
31
32
|
attribute :country, Types::String
|
@@ -36,9 +37,10 @@ module UserEngage
|
|
36
37
|
attribute :id, Types::Integer
|
37
38
|
attribute :member_since, Types::DateTime
|
38
39
|
attribute :name, Types::String
|
39
|
-
attribute :phone_numbers, Types::Array.of(Types::String)
|
40
|
+
attribute :phone_numbers, Types::Coercible::Array.of(Types::String)
|
40
41
|
attribute :postal_code, Types::String
|
41
42
|
attribute :region, Types::String
|
43
|
+
attribute :tags, Types::Coercible::Array.of(UserEngage::Tag)
|
42
44
|
attribute :updated_at, Types::DateTime
|
43
45
|
|
44
46
|
###################
|
data/lib/user_engage/user.rb
CHANGED
@@ -25,12 +25,12 @@ module UserEngage
|
|
25
25
|
################
|
26
26
|
## Attributes ##
|
27
27
|
################
|
28
|
-
attribute :attributes, Types::Array.of(UserEngage::Attribute)
|
28
|
+
attribute :attributes, Types::Coercible::Array.of(UserEngage::Attribute)
|
29
29
|
attribute :browser, Types::String
|
30
30
|
attribute :browser_language, Types::String
|
31
31
|
attribute :chat_id, Types::Integer
|
32
32
|
attribute :city, Types::String
|
33
|
-
attribute :companies, Types::Array.of(UserEngage::Company)
|
33
|
+
attribute :companies, Types::Coercible::Array.of(UserEngage::Company)
|
34
34
|
attribute :country, Types::String
|
35
35
|
attribute :created_at, Types::DateTime
|
36
36
|
attribute :email, Types::String
|
@@ -45,7 +45,7 @@ module UserEngage
|
|
45
45
|
attribute :last_ip, Types::String
|
46
46
|
attribute :last_seen, Types::DateTime
|
47
47
|
attribute :linkedin_url, Types::String
|
48
|
-
attribute :lists, Types::Array.of(UserEngage::List)
|
48
|
+
attribute :lists, Types::Coercible::Array.of(UserEngage::List)
|
49
49
|
attribute :name, Types::String
|
50
50
|
attribute :notifications, Types::Bool
|
51
51
|
attribute :os_type, Types::String
|
@@ -55,7 +55,7 @@ module UserEngage
|
|
55
55
|
attribute :resolution, Types::String
|
56
56
|
attribute :score, Types::Integer
|
57
57
|
attribute :status, Types::String
|
58
|
-
attribute :tags, Types::Array.of(UserEngage::Tag)
|
58
|
+
attribute :tags, Types::Coercible::Array.of(UserEngage::Tag)
|
59
59
|
attribute :timezone, Types::String
|
60
60
|
attribute :twitter_url, Types::String
|
61
61
|
attribute :unsubscribed, Types::Bool
|
data/lib/user_engage/version.rb
CHANGED