intercom 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/changes.txt +6 -0
- data/lib/intercom/user.rb +21 -0
- data/lib/intercom/version.rb +1 -1
- data/spec/unit/intercom/user_spec.rb +1 -1
- metadata +2 -2
data/changes.txt
CHANGED
data/lib/intercom/user.rb
CHANGED
@@ -150,6 +150,27 @@ module Intercom
|
|
150
150
|
time_at("last_impression_at")
|
151
151
|
end
|
152
152
|
|
153
|
+
##
|
154
|
+
# Set Time at which this User last made a request your application.
|
155
|
+
# @return [void]
|
156
|
+
def last_impression_at=(time)
|
157
|
+
set_time_at("last_impression_at", time)
|
158
|
+
end
|
159
|
+
|
160
|
+
##
|
161
|
+
# Get last time this User interacted with your application
|
162
|
+
# @return [Time]
|
163
|
+
def last_request_at
|
164
|
+
time_at("last_request_at")
|
165
|
+
end
|
166
|
+
|
167
|
+
##
|
168
|
+
# Set Time at which this User last made a request your application.
|
169
|
+
# @return [void]
|
170
|
+
def last_request_at=(time)
|
171
|
+
set_time_at("last_request_at", time)
|
172
|
+
end
|
173
|
+
|
153
174
|
##
|
154
175
|
# Get Time at which this User started using your application.
|
155
176
|
# @return [Time]
|
data/lib/intercom/version.rb
CHANGED
@@ -115,7 +115,7 @@ describe "Intercom::User" do
|
|
115
115
|
end
|
116
116
|
|
117
117
|
it "raises argument error when trying to set a read only attribute" do
|
118
|
-
read_only_attributes = %w(relationship_score
|
118
|
+
read_only_attributes = %w(relationship_score session_count)
|
119
119
|
read_only_attributes.each do |read_only|
|
120
120
|
proc { Intercom::User.create("email" => "jo@example.com", read_only => "some value") }.must_raise NoMethodError
|
121
121
|
user = Intercom::User.new
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: intercom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2013-01-08 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: minitest
|