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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e43981a5b44ddf9cbc3b2226ebd30a418210bccc073c6a01267f9ce230a2922d
4
- data.tar.gz: c57f5863e79923cbb9d63b857016686284d410dfe700f8dfc8d08e0e22caf8bd
3
+ metadata.gz: 3ce68e57d6812c89850b82ebd6b115679e360493ae504f5180bce46fa403a038
4
+ data.tar.gz: ccc4ed699c94fb6f3a47afe0b6d3e7446aeca388aa1ea60856ee6b9fbc54c8ac
5
5
  SHA512:
6
- metadata.gz: 840305f5334181f9d6e0ac53539d014f71e7a27fe4e5af65da326595064965ca9c6d31c0cd85a2c2c6cb1c7c508af84b75d462dd603d71f7378e46c67010a14a
7
- data.tar.gz: 003be8e28d2b6b4b251523550e8d164309876caa46cedf513ea1b781edb8d14c2ae4c38982b6a7c0bdc957dc1be107de09215d87611e03e4a3e12659daade576
6
+ metadata.gz: 1eaddf7d9b14d08b417af266b0d003613d5b0e0ecfc747a174d059afca40e8149577160e23e220044d7121ccc49149b73b4f4eea9fbb6998a2c451272971fe1e
7
+ data.tar.gz: 7ed4e54c8aa2ef5e06593326d1c5f0bd14db43eb30fb9443862dd6c1073dc9c66e23db99d28926900673f69bed1972cb209214b707e500a5c695bd57c1832b99
@@ -8,7 +8,7 @@ module MoesifApi
8
8
  # Your Application Id for authentication/authorization
9
9
  @application_id = 'SET_ME'
10
10
 
11
- @version = '1.2.10'
11
+ @version = '1.2.11'
12
12
 
13
13
  # create the getters and setters
14
14
  class << self
@@ -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.10
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-13 00:00:00.000000000 Z
12
+ date: 2019-12-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: test-unit