moesif_api 1.2.10 → 1.2.11
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/moesif_api/configuration.rb +1 -1
- data/lib/moesif_api/models/event_model.rb +11 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ce68e57d6812c89850b82ebd6b115679e360493ae504f5180bce46fa403a038
|
4
|
+
data.tar.gz: ccc4ed699c94fb6f3a47afe0b6d3e7446aeca388aa1ea60856ee6b9fbc54c8ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1eaddf7d9b14d08b417af266b0d003613d5b0e0ecfc747a174d059afca40e8149577160e23e220044d7121ccc49149b73b4f4eea9fbb6998a2c451272971fe1e
|
7
|
+
data.tar.gz: 7ed4e54c8aa2ef5e06593326d1c5f0bd14db43eb30fb9443862dd6c1073dc9c66e23db99d28926900673f69bed1972cb209214b707e500a5c695bd57c1832b99
|
@@ -34,6 +34,10 @@ module MoesifApi
|
|
34
34
|
# @return [String]
|
35
35
|
attr_accessor :direction
|
36
36
|
|
37
|
+
# Weight of an API call
|
38
|
+
# @return [Integer]
|
39
|
+
attr_accessor :weight
|
40
|
+
|
37
41
|
# A mapping from model property names to API property names
|
38
42
|
def self.names
|
39
43
|
if @hash.nil?
|
@@ -46,6 +50,7 @@ module MoesifApi
|
|
46
50
|
@hash["company_id"] = "company_id"
|
47
51
|
@hash["metadata"] = "metadata"
|
48
52
|
@hash["direction"] = "direction"
|
53
|
+
@hash["weight"] = "weight"
|
49
54
|
end
|
50
55
|
@hash
|
51
56
|
end
|
@@ -57,7 +62,8 @@ module MoesifApi
|
|
57
62
|
user_id = nil,
|
58
63
|
company_id = nil,
|
59
64
|
metadata = nil,
|
60
|
-
direction = nil
|
65
|
+
direction = nil,
|
66
|
+
weight = nil)
|
61
67
|
@request = request
|
62
68
|
@response = response
|
63
69
|
@session_token = session_token
|
@@ -66,6 +72,7 @@ module MoesifApi
|
|
66
72
|
@company_id = company_id
|
67
73
|
@metadata = metadata
|
68
74
|
@direction = direction
|
75
|
+
@weight = weight
|
69
76
|
end
|
70
77
|
|
71
78
|
# Creates an instance of the object from a hash
|
@@ -82,6 +89,7 @@ module MoesifApi
|
|
82
89
|
company_id = hash["company_id"]
|
83
90
|
metadata = hash["metadata"]
|
84
91
|
direction = hash["direction"]
|
92
|
+
weight = hash["weight"]
|
85
93
|
|
86
94
|
# Create object from extracted values
|
87
95
|
EventModel.new(request,
|
@@ -91,7 +99,8 @@ module MoesifApi
|
|
91
99
|
user_id,
|
92
100
|
company_id,
|
93
101
|
metadata,
|
94
|
-
direction
|
102
|
+
direction,
|
103
|
+
weight)
|
95
104
|
end
|
96
105
|
end
|
97
106
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: moesif_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Moesif, Inc
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-12-
|
12
|
+
date: 2019-12-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: test-unit
|