rallio 0.4.2 → 0.4.3
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/lib/rallio/access_token.rb +3 -2
- data/lib/rallio/account.rb +7 -0
- data/lib/rallio/account_ownership.rb +5 -0
- data/lib/rallio/franchisor_ownership.rb +3 -0
- data/lib/rallio/review.rb +17 -0
- data/lib/rallio/sign_on_token.rb +3 -2
- data/lib/rallio/user.rb +4 -0
- data/lib/rallio/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a52fdea6f8d7d74e99bc1c1c0cf9304bbe93aa55
|
4
|
+
data.tar.gz: dccc50810f98dc4c42cd2c146ae3c2239ff2af91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 678dbebaac83cbc1bb1721d49fdfcb1b219e231660c11c1d36e498aba4bc58b9b1a2ea326fdd9333282a93cc14b70cac63673bd100cbcb4daa16cb905f0a9ff1
|
7
|
+
data.tar.gz: c7cbc8781cfd506b8492ed07b901d70e4f1c32823a4201c891058b0aaea9d5e6aa8b2b6aa58c3d6cbae0dc4296d79fa24553e0c996ddf77a86301f55bee0a551
|
data/lib/rallio/access_token.rb
CHANGED
@@ -2,12 +2,13 @@ module Rallio
|
|
2
2
|
# Represents an access token object as it comes from Rallio.
|
3
3
|
#
|
4
4
|
# @!attribute [rw] access_token
|
5
|
-
#
|
5
|
+
# @return [String] actual access token string
|
6
6
|
# @!attribute [rw] user_id
|
7
|
+
# @return [Integer] unique id for user
|
7
8
|
# @!attribute [rw] expires_at
|
8
9
|
# @return [DateTime, nil] expiration DateTime or nil if access token never expires
|
9
10
|
# @!attribute [rw] scopes
|
10
|
-
#
|
11
|
+
# @return [String] list of oauth scopes for the access token
|
11
12
|
class AccessToken < Base
|
12
13
|
attribute :access_token, String
|
13
14
|
attribute :user_id, Integer
|
data/lib/rallio/account.rb
CHANGED
@@ -2,12 +2,19 @@ module Rallio
|
|
2
2
|
# Represents an account object as it comes from Rallio.
|
3
3
|
#
|
4
4
|
# @!attribute [rw] id
|
5
|
+
# @return [Integer] unique id for account
|
5
6
|
# @!attribute [rw] name
|
7
|
+
# @return [String] account name
|
6
8
|
# @!attribute [rw] short_name
|
9
|
+
# @return [String] account short name
|
7
10
|
# @!attribute [rw] url
|
11
|
+
# @return [String] account url
|
8
12
|
# @!attribute [rw] city
|
13
|
+
# @return [String] account city
|
9
14
|
# @!attribute [rw] country_code
|
15
|
+
# @return [String] account country code
|
10
16
|
# @!attribute [rw] time_zone
|
17
|
+
# @return [String] account time zone
|
11
18
|
class Account < Base
|
12
19
|
attribute :id, Integer
|
13
20
|
attribute :name, String
|
@@ -2,10 +2,15 @@ module Rallio
|
|
2
2
|
# Represents an account ownership object as it comes from Rallio.
|
3
3
|
#
|
4
4
|
# @!attribute [rw] user_id
|
5
|
+
# @return [Integer] unique id for user
|
5
6
|
# @!attribute [rw] account_id
|
7
|
+
# @return [Integer] unique id for account
|
6
8
|
# @!attribute [rw] account_name
|
9
|
+
# @return [String] account name
|
7
10
|
# @!attribute [rw] account_franchisor_id
|
11
|
+
# @return [Integer] unique id for franchisor
|
8
12
|
# @!attribute [rw] account_franchisor_name
|
13
|
+
# @return [String] franchisor name
|
9
14
|
class AccountOwnership < OwnershipsBase
|
10
15
|
attribute :user_id, Integer
|
11
16
|
attribute :account_id, Integer
|
@@ -2,8 +2,11 @@ module Rallio
|
|
2
2
|
# Represents a franchisor ownership as it comes from Rallio.
|
3
3
|
#
|
4
4
|
# @!attribute [rw] user_id
|
5
|
+
# @return [Integer] unique id for user
|
5
6
|
# @!attribute [rw] franchisor_id
|
7
|
+
# @return [Integer] unique id for franchisor
|
6
8
|
# @!attribute [rw] franchisor_name
|
9
|
+
# @return [String] franchisor name
|
7
10
|
class FranchisorOwnership < OwnershipsBase
|
8
11
|
attribute :user_id, Integer
|
9
12
|
attribute :franchisor_id, Integer
|
data/lib/rallio/review.rb
CHANGED
@@ -2,22 +2,39 @@ module Rallio
|
|
2
2
|
# Represents a review object as it comes from Rallio.
|
3
3
|
#
|
4
4
|
# @!attribute [rw] id
|
5
|
+
# @return [Integer] unique id for review
|
5
6
|
# @!attribute [rw] account_id
|
7
|
+
# @return [Integer] unique id for account
|
6
8
|
# @!attribute [rw] account_name
|
9
|
+
# @return [String] account name
|
7
10
|
# @!attribute [rw] network
|
11
|
+
# @return [String] social network review was posted to
|
8
12
|
# @!attribute [rw] posted_at
|
13
|
+
# @return [DateTime] DateTime review was made
|
9
14
|
# @!attribute [rw] user_name
|
15
|
+
# @return [String] social network username of reviewer
|
10
16
|
# @!attribute [rw] user_image
|
17
|
+
# @return [String] link to image of reviewer
|
11
18
|
# @!attribute [rw] rating
|
19
|
+
# @return [Integer] overall review rating
|
12
20
|
# @!attribute [rw] message
|
21
|
+
# @return [String] review text left by reviewer
|
13
22
|
# @!attribute [rw] comments
|
23
|
+
# @return [Array<Hash>] for facebook this is an array of responses to review
|
14
24
|
# @!attribute [rw] liked
|
25
|
+
# @return [true, false] true if review has been liked
|
15
26
|
# @!attribute [rw] url
|
27
|
+
# @return [String] url to review
|
16
28
|
# @!attribute [rw] can_reply
|
29
|
+
# @return [true, false] true if review can be replied to
|
17
30
|
# @!attribute [rw] location_name
|
31
|
+
# @return [String] location review is for
|
18
32
|
# @!attribute [rw] location_image_url
|
33
|
+
# @return [String] url for image of location
|
19
34
|
# @!attribute [rw] review_reply
|
35
|
+
# @return [String] reply for non-facebook reviews
|
20
36
|
# @!attribute [rw] review_reply_at
|
37
|
+
# @return [DateTime] DateTime of reply for non-facebook reviews
|
21
38
|
class Review < Base
|
22
39
|
attribute :id, Integer
|
23
40
|
attribute :account_id, Integer
|
data/lib/rallio/sign_on_token.rb
CHANGED
@@ -2,10 +2,11 @@ module Rallio
|
|
2
2
|
# Represents a sign on token object as it comes from Rallio.
|
3
3
|
#
|
4
4
|
# @!attribute [rw] token
|
5
|
+
# @return [String] token for SSO url
|
5
6
|
# @!attribute [rw] expires_at
|
6
|
-
# DateTime token and url will become invalid.
|
7
|
+
# @return [DateTime] DateTime token and url will become invalid.
|
7
8
|
# @!attribute [rw] url
|
8
|
-
#
|
9
|
+
# @return [String] url to redirect user to for SSO with token embedded
|
9
10
|
class SignOnToken < Base
|
10
11
|
attribute :token, String
|
11
12
|
attribute :expires_at, DateTime
|
data/lib/rallio/user.rb
CHANGED
@@ -2,9 +2,13 @@ module Rallio
|
|
2
2
|
# Represents a user object as it comes from Rallio.
|
3
3
|
#
|
4
4
|
# @!attribute [rw] id
|
5
|
+
# @return [Integer] unique id for user
|
5
6
|
# @!attribute [rw] email
|
7
|
+
# @return [String] user email
|
6
8
|
# @!attribute [rw] first_name
|
9
|
+
# @return [String] user first name
|
7
10
|
# @!attribute [rw] last_name
|
11
|
+
# @return [String] user last name
|
8
12
|
class User < Base
|
9
13
|
attribute :id, Integer
|
10
14
|
attribute :email, String
|
data/lib/rallio/version.rb
CHANGED