eml 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +7 -0
  2. data/.editorconfig +10 -0
  3. data/.env.example +6 -0
  4. data/.gitignore +5 -0
  5. data/.rspec +5 -0
  6. data/.rubocop.yml +90 -0
  7. data/Gemfile +6 -0
  8. data/LICENSE +21 -0
  9. data/README.md +87 -0
  10. data/eml.gemspec +37 -0
  11. data/lib/eml.rb +22 -0
  12. data/lib/eml/config.rb +49 -0
  13. data/lib/eml/data/countries.rb +260 -0
  14. data/lib/eml/data/currencies.rb +176 -0
  15. data/lib/eml/data/states.rb +4055 -0
  16. data/lib/eml/environment.rb +54 -0
  17. data/lib/eml/error.rb +25 -0
  18. data/lib/eml/error/rest.rb +42 -0
  19. data/lib/eml/error/rest/authentication.rb +21 -0
  20. data/lib/eml/error/rest/bad_request.rb +20 -0
  21. data/lib/eml/error/rest/daily_funding_limit.rb +19 -0
  22. data/lib/eml/error/rest/forbidden.rb +20 -0
  23. data/lib/eml/error/rest/internal_server.rb +9 -0
  24. data/lib/eml/error/rest/not_found.rb +20 -0
  25. data/lib/eml/error/rest/unprocessable_entity.rb +20 -0
  26. data/lib/eml/lib/endpoint_class.rb +42 -0
  27. data/lib/eml/parameters.rb +153 -0
  28. data/lib/eml/payload.rb +137 -0
  29. data/lib/eml/response.rb +103 -0
  30. data/lib/eml/uk.rb +51 -0
  31. data/lib/eml/uk/api_resource.rb +94 -0
  32. data/lib/eml/uk/config.rb +52 -0
  33. data/lib/eml/uk/lib/endpoint_class.rb +19 -0
  34. data/lib/eml/uk/lib/parse_date.rb +35 -0
  35. data/lib/eml/uk/model/transaction.rb +56 -0
  36. data/lib/eml/uk/parameters.rb +99 -0
  37. data/lib/eml/uk/parameters/agreement/show.rb +22 -0
  38. data/lib/eml/uk/parameters/card/activation.rb +24 -0
  39. data/lib/eml/uk/parameters/card/lock.rb +26 -0
  40. data/lib/eml/uk/parameters/card/register.rb +24 -0
  41. data/lib/eml/uk/parameters/card/reload.rb +24 -0
  42. data/lib/eml/uk/parameters/card/show.rb +102 -0
  43. data/lib/eml/uk/parameters/card/transaction.rb +59 -0
  44. data/lib/eml/uk/parameters/card/unload.rb +26 -0
  45. data/lib/eml/uk/parameters/card/unlock.rb +26 -0
  46. data/lib/eml/uk/parameters/card/void.rb +26 -0
  47. data/lib/eml/uk/payload.rb +94 -0
  48. data/lib/eml/uk/payload/agreement/show.rb +46 -0
  49. data/lib/eml/uk/payload/card/activation.rb +73 -0
  50. data/lib/eml/uk/payload/card/lock.rb +34 -0
  51. data/lib/eml/uk/payload/card/register.rb +70 -0
  52. data/lib/eml/uk/payload/card/reload.rb +38 -0
  53. data/lib/eml/uk/payload/card/show.rb +12 -0
  54. data/lib/eml/uk/payload/card/transaction.rb +12 -0
  55. data/lib/eml/uk/payload/card/unload.rb +38 -0
  56. data/lib/eml/uk/payload/card/unlock.rb +23 -0
  57. data/lib/eml/uk/payload/card/void.rb +23 -0
  58. data/lib/eml/uk/payload/contactentity.rb +64 -0
  59. data/lib/eml/uk/payload/iso.rb +48 -0
  60. data/lib/eml/uk/payload/location.rb +30 -0
  61. data/lib/eml/uk/resources/agreement.rb +32 -0
  62. data/lib/eml/uk/resources/card.rb +181 -0
  63. data/lib/eml/uk/response.rb +29 -0
  64. data/lib/eml/uk/responses/agreement/show.rb +16 -0
  65. data/lib/eml/uk/responses/card/reload.rb +19 -0
  66. data/lib/eml/uk/responses/card/show.rb +53 -0
  67. data/lib/eml/uk/responses/card/transaction.rb +24 -0
  68. data/lib/eml/version.rb +6 -0
  69. data/sorbet/config +2 -0
  70. data/sorbet/rbi/gems/addressable.rbi +198 -0
  71. data/sorbet/rbi/gems/ast.rbi +47 -0
  72. data/sorbet/rbi/gems/concurrent-ruby.rbi +218 -0
  73. data/sorbet/rbi/gems/crack.rbi +47 -0
  74. data/sorbet/rbi/gems/docile.rbi +31 -0
  75. data/sorbet/rbi/gems/domain_name.rbi +51 -0
  76. data/sorbet/rbi/gems/dotenv.rbi +67 -0
  77. data/sorbet/rbi/gems/faker.rbi +1350 -0
  78. data/sorbet/rbi/gems/hashdiff.rbi +65 -0
  79. data/sorbet/rbi/gems/http-cookie.rbi +92 -0
  80. data/sorbet/rbi/gems/http-form_data.rbi +73 -0
  81. data/sorbet/rbi/gems/http.rbi +609 -0
  82. data/sorbet/rbi/gems/http_parser.rb.rbi +36 -0
  83. data/sorbet/rbi/gems/i18n.rbi +191 -0
  84. data/sorbet/rbi/gems/jaro_winkler.rbi +14 -0
  85. data/sorbet/rbi/gems/parallel.rbi +81 -0
  86. data/sorbet/rbi/gems/parser.rbi +835 -0
  87. data/sorbet/rbi/gems/public_suffix.rbi +103 -0
  88. data/sorbet/rbi/gems/rainbow.rbi +117 -0
  89. data/sorbet/rbi/gems/rspec-core.rbi +1655 -0
  90. data/sorbet/rbi/gems/rspec-support.rbi +126 -0
  91. data/sorbet/rbi/gems/rspec.rbi +14 -0
  92. data/sorbet/rbi/gems/rubocop-performance.rbi +276 -0
  93. data/sorbet/rbi/gems/rubocop-rspec.rbi +860 -0
  94. data/sorbet/rbi/gems/rubocop.rbi +6943 -0
  95. data/sorbet/rbi/gems/ruby-progressbar.rbi +304 -0
  96. data/sorbet/rbi/gems/simplecov-html.rbi +30 -0
  97. data/sorbet/rbi/gems/simplecov.rbi +225 -0
  98. data/sorbet/rbi/gems/unf.rbi +18 -0
  99. data/sorbet/rbi/gems/unicode-display_width.rbi +16 -0
  100. data/sorbet/rbi/gems/vcr.rbi +503 -0
  101. data/sorbet/rbi/gems/webmock.rbi +521 -0
  102. data/sorbet/rbi/hidden-definitions/errors.txt +4802 -0
  103. data/sorbet/rbi/hidden-definitions/hidden.rbi +10700 -0
  104. data/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +8682 -0
  105. data/sorbet/rbi/sorbet-typed/lib/ruby/all/gem.rbi +4222 -0
  106. data/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +111 -0
  107. data/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +543 -0
  108. data/sorbet/rbi/todo.rbi +24 -0
  109. data/spec/config_spec.rb +26 -0
  110. data/spec/helpers/config_helper.rb +21 -0
  111. data/spec/helpers/vcr_helper.rb +19 -0
  112. data/spec/spec_helper.rb +120 -0
  113. data/spec/uk/api_resource_spec.rb +39 -0
  114. data/spec/uk/resources/agreement_spec.rb +23 -0
  115. data/spec/uk/resources/card_spec.rb +197 -0
  116. metadata +339 -0
@@ -0,0 +1,29 @@
1
+ # typed: strict
2
+ # frozen_string_literal: true
3
+
4
+ module EML
5
+ module UK
6
+ class Response < ::EML::Response
7
+ class << self
8
+ extend T::Sig
9
+
10
+ protected
11
+
12
+ sig { params(field_name: Symbol).void }
13
+ def field(field_name)
14
+ string_name = field_name.to_s
15
+ return date_field(field_name) if string_name.include?("date")
16
+
17
+ super
18
+ end
19
+
20
+ sig { params(field_name: Symbol).void }
21
+ def date_field(field_name)
22
+ define_method(field_name) do
23
+ ::EML::UK::ParseDate.(body[field_name.to_s])
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,16 @@
1
+ # typed: strict
2
+ # frozen_string_literal: true
3
+
4
+ module EML
5
+ module UK
6
+ module Responses
7
+ module Agreement
8
+ class Show < ::EML::UK::Response
9
+ field :file_name
10
+ field :pdf_url
11
+ field :txt_url
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,19 @@
1
+ # typed: strict
2
+ # frozen_string_literal: true
3
+
4
+ module EML
5
+ module UK
6
+ module Responses
7
+ module Card
8
+ class Reload < ::EML::UK::Response
9
+ extend T::Sig
10
+
11
+ field :adjusted_balance
12
+ field :available_balance
13
+ field :currency
14
+ field :system_transaction_id
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,53 @@
1
+ # typed: strict
2
+ # frozen_string_literal: true
3
+
4
+ module EML
5
+ module UK
6
+ module Responses
7
+ module Card
8
+ class Show < ::EML::UK::Response
9
+ extend T::Sig
10
+
11
+ field :account_expiration_date
12
+ field :activating_merchant_group_name
13
+ field :activating_merchant_group_uniquetag
14
+ field :activation_amount
15
+ field :activation_country
16
+ field :activation_date
17
+ field :activation_transaction_id
18
+ field :actual_balance
19
+ field :adjusted_balance
20
+ field :agreement_pdf
21
+ field :amf_amount
22
+ field :amf_next_date
23
+ field :amf_start_date
24
+ field :available_balance
25
+ field :bank_name
26
+ field :can_activate
27
+ field :can_redeem
28
+ field :card_id
29
+ field :card_type
30
+ field :currency
31
+ field :currency_info
32
+ field :distributor_refund
33
+ field :expiration_date
34
+ field :has_atm_access
35
+ field :has_pin
36
+ field :is_icc_card
37
+ field :is_organization_registration
38
+ field :is_registered
39
+ field :is_reloadable
40
+ field :is_virtual
41
+ field :pan_last_four
42
+ field :pin_enabled
43
+ field :program_can_register
44
+ field :program_name
45
+ field :program_supports_statements
46
+ field :program_uniquetag
47
+ field :security_code
48
+ field :status
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,24 @@
1
+ # typed: strict
2
+ # frozen_string_literal: true
3
+
4
+ module EML
5
+ module UK
6
+ module Responses
7
+ module Card
8
+ class Transaction < ::EML::UK::Response
9
+ extend T::Sig
10
+
11
+ field :count
12
+
13
+ sig { returns(T::Array[::EML::UK::Model::Transaction]) }
14
+ def transactions
15
+ @transactions ||= body["transactions"].
16
+ each_with_object([]) do |transaction, array|
17
+ array << ::EML::UK::Model::Transaction.new(transaction)
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,6 @@
1
+ # typed: strong
2
+ # frozen_string_literal: true
3
+
4
+ module EML
5
+ VERSION = "1.0.0"
6
+ end
@@ -0,0 +1,2 @@
1
+ --dir
2
+ .
@@ -0,0 +1,198 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: strong
5
+ #
6
+ # If you would like to make changes to this file, great! Please create the gem's shim here:
7
+ #
8
+ # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/addressable/all/addressable.rbi
9
+ #
10
+ # addressable-2.6.0
11
+ module Addressable
12
+ end
13
+ module Addressable::VERSION
14
+ end
15
+ module Addressable::IDNA
16
+ def self.lookup_unicode_combining_class(codepoint); end
17
+ def self.lookup_unicode_compatibility(codepoint); end
18
+ def self.lookup_unicode_composition(unpacked); end
19
+ def self.lookup_unicode_lowercase(codepoint); end
20
+ def self.punycode_adapt(delta, numpoints, firsttime); end
21
+ def self.punycode_basic?(codepoint); end
22
+ def self.punycode_decode(punycode); end
23
+ def self.punycode_decode_digit(codepoint); end
24
+ def self.punycode_delimiter?(codepoint); end
25
+ def self.punycode_encode(unicode); end
26
+ def self.punycode_encode_digit(d); end
27
+ def self.to_ascii(input); end
28
+ def self.to_unicode(input); end
29
+ def self.unicode_compose(unpacked); end
30
+ def self.unicode_compose_pair(ch_one, ch_two); end
31
+ def self.unicode_decompose(unpacked); end
32
+ def self.unicode_decompose_hangul(codepoint); end
33
+ def self.unicode_downcase(input); end
34
+ def self.unicode_normalize_kc(input); end
35
+ def self.unicode_sort_canonical(unpacked); end
36
+ end
37
+ class Addressable::IDNA::PunycodeBadInput < StandardError
38
+ end
39
+ class Addressable::IDNA::PunycodeBigOutput < StandardError
40
+ end
41
+ class Addressable::IDNA::PunycodeOverflow < StandardError
42
+ end
43
+ class Addressable::URI
44
+ def +(uri); end
45
+ def ==(uri); end
46
+ def ===(uri); end
47
+ def absolute?; end
48
+ def authority; end
49
+ def authority=(new_authority); end
50
+ def basename; end
51
+ def default_port; end
52
+ def defer_validation(&block); end
53
+ def display_uri; end
54
+ def domain; end
55
+ def dup; end
56
+ def empty?; end
57
+ def eql?(uri); end
58
+ def extname; end
59
+ def fragment; end
60
+ def fragment=(new_fragment); end
61
+ def freeze; end
62
+ def hash; end
63
+ def host; end
64
+ def host=(new_host); end
65
+ def hostname; end
66
+ def hostname=(new_hostname); end
67
+ def inferred_port; end
68
+ def initialize(options = nil); end
69
+ def inspect; end
70
+ def ip_based?; end
71
+ def join!(uri); end
72
+ def join(uri); end
73
+ def merge!(uri); end
74
+ def merge(hash); end
75
+ def normalize!; end
76
+ def normalize; end
77
+ def normalized_authority; end
78
+ def normalized_fragment; end
79
+ def normalized_host; end
80
+ def normalized_password; end
81
+ def normalized_path; end
82
+ def normalized_port; end
83
+ def normalized_query(*flags); end
84
+ def normalized_scheme; end
85
+ def normalized_site; end
86
+ def normalized_user; end
87
+ def normalized_userinfo; end
88
+ def omit!(*components); end
89
+ def omit(*components); end
90
+ def origin; end
91
+ def origin=(new_origin); end
92
+ def password; end
93
+ def password=(new_password); end
94
+ def path; end
95
+ def path=(new_path); end
96
+ def port; end
97
+ def port=(new_port); end
98
+ def query; end
99
+ def query=(new_query); end
100
+ def query_values(return_type = nil); end
101
+ def query_values=(new_query_values); end
102
+ def relative?; end
103
+ def remove_composite_values; end
104
+ def replace_self(uri); end
105
+ def request_uri; end
106
+ def request_uri=(new_request_uri); end
107
+ def route_from(uri); end
108
+ def route_to(uri); end
109
+ def scheme; end
110
+ def scheme=(new_scheme); end
111
+ def self.convert_path(path); end
112
+ def self.encode(uri, return_type = nil); end
113
+ def self.encode_component(component, character_class = nil, upcase_encoded = nil); end
114
+ def self.escape(uri, return_type = nil); end
115
+ def self.form_encode(form_values, sort = nil); end
116
+ def self.form_unencode(encoded_value); end
117
+ def self.heuristic_parse(uri, hints = nil); end
118
+ def self.ip_based_schemes; end
119
+ def self.join(*uris); end
120
+ def self.normalize_component(component, character_class = nil, leave_encoded = nil); end
121
+ def self.normalize_path(path); end
122
+ def self.normalized_encode(uri, return_type = nil); end
123
+ def self.parse(uri); end
124
+ def self.port_mapping; end
125
+ def self.unencode(uri, return_type = nil, leave_encoded = nil); end
126
+ def self.unencode_component(uri, return_type = nil, leave_encoded = nil); end
127
+ def self.unescape(uri, return_type = nil, leave_encoded = nil); end
128
+ def self.unescape_component(uri, return_type = nil, leave_encoded = nil); end
129
+ def site; end
130
+ def site=(new_site); end
131
+ def split_path(path); end
132
+ def tld; end
133
+ def tld=(new_tld); end
134
+ def to_hash; end
135
+ def to_s; end
136
+ def to_str; end
137
+ def user; end
138
+ def user=(new_user); end
139
+ def userinfo; end
140
+ def userinfo=(new_userinfo); end
141
+ def validate; end
142
+ end
143
+ class Addressable::URI::InvalidURIError < StandardError
144
+ end
145
+ module Addressable::URI::CharacterClasses
146
+ end
147
+ class Addressable::Template
148
+ def ==(template); end
149
+ def eql?(template); end
150
+ def expand(mapping, processor = nil, normalize_values = nil); end
151
+ def extract(uri, processor = nil); end
152
+ def freeze; end
153
+ def generate(params = nil, recall = nil, options = nil); end
154
+ def initialize(pattern); end
155
+ def inspect; end
156
+ def join_values(operator, return_value); end
157
+ def keys; end
158
+ def match(uri, processor = nil); end
159
+ def named_captures; end
160
+ def names; end
161
+ def normalize_keys(mapping); end
162
+ def normalize_value(value); end
163
+ def ordered_variable_defaults; end
164
+ def parse_template_pattern(pattern, processor = nil); end
165
+ def partial_expand(mapping, processor = nil, normalize_values = nil); end
166
+ def pattern; end
167
+ def source; end
168
+ def to_regexp; end
169
+ def transform_capture(mapping, capture, processor = nil, normalize_values = nil); end
170
+ def transform_partial_capture(mapping, capture, processor = nil, normalize_values = nil); end
171
+ def variable_defaults; end
172
+ def variables; end
173
+ end
174
+ class Addressable::Template::InvalidTemplateValueError < StandardError
175
+ end
176
+ class Addressable::Template::InvalidTemplateOperatorError < StandardError
177
+ end
178
+ class Addressable::Template::TemplateOperatorAbortedError < StandardError
179
+ end
180
+ class Addressable::Template::MatchData
181
+ def [](key, len = nil); end
182
+ def captures; end
183
+ def initialize(uri, template, mapping); end
184
+ def inspect; end
185
+ def keys; end
186
+ def mapping; end
187
+ def names; end
188
+ def post_match; end
189
+ def pre_match; end
190
+ def string; end
191
+ def template; end
192
+ def to_a; end
193
+ def to_s; end
194
+ def uri; end
195
+ def values; end
196
+ def values_at(*indexes); end
197
+ def variables; end
198
+ end
@@ -0,0 +1,47 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: strong
5
+ #
6
+ # If you would like to make changes to this file, great! Please create the gem's shim here:
7
+ #
8
+ # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/ast/all/ast.rbi
9
+ #
10
+ # ast-2.4.0
11
+ module AST
12
+ end
13
+ class AST::Node
14
+ def +(array); end
15
+ def <<(element); end
16
+ def ==(other); end
17
+ def append(element); end
18
+ def assign_properties(properties); end
19
+ def children; end
20
+ def clone; end
21
+ def concat(array); end
22
+ def dup; end
23
+ def eql?(other); end
24
+ def fancy_type; end
25
+ def hash; end
26
+ def initialize(type, children = nil, properties = nil); end
27
+ def inspect(indent = nil); end
28
+ def original_dup; end
29
+ def to_a; end
30
+ def to_ast; end
31
+ def to_s(indent = nil); end
32
+ def to_sexp(indent = nil); end
33
+ def to_sexp_array; end
34
+ def type; end
35
+ def updated(type = nil, children = nil, properties = nil); end
36
+ end
37
+ class AST::Processor
38
+ include AST::Processor::Mixin
39
+ end
40
+ module AST::Processor::Mixin
41
+ def handler_missing(node); end
42
+ def process(node); end
43
+ def process_all(nodes); end
44
+ end
45
+ module AST::Sexp
46
+ def s(type, *children); end
47
+ end
@@ -0,0 +1,218 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: strong
5
+ #
6
+ # If you would like to make changes to this file, great! Please create the gem's shim here:
7
+ #
8
+ # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/concurrent-ruby/all/concurrent-ruby.rbi
9
+ #
10
+ # concurrent-ruby-1.1.5
11
+ module Concurrent
12
+ extend Concurrent::Utility::EngineDetector
13
+ extend Concurrent::Utility::NativeExtensionLoader
14
+ end
15
+ module Concurrent::Utility
16
+ end
17
+ module Concurrent::Utility::EngineDetector
18
+ def on_cruby?; end
19
+ def on_jruby?; end
20
+ def on_jruby_9000?; end
21
+ def on_linux?; end
22
+ def on_osx?; end
23
+ def on_rbx?; end
24
+ def on_truffleruby?; end
25
+ def on_windows?; end
26
+ def ruby_engine; end
27
+ def ruby_version(version = nil, comparison, major, minor, patch); end
28
+ end
29
+ module Concurrent::Synchronization
30
+ end
31
+ class Concurrent::Synchronization::AbstractObject
32
+ def full_memory_barrier; end
33
+ def initialize; end
34
+ def self.attr_volatile(*names); end
35
+ end
36
+ module Concurrent::Utility::NativeExtensionLoader
37
+ def allow_c_extensions?; end
38
+ def c_extensions_loaded?; end
39
+ def java_extensions_loaded?; end
40
+ def load_error_path(error); end
41
+ def load_native_extensions; end
42
+ def set_c_extensions_loaded; end
43
+ def set_java_extensions_loaded; end
44
+ def try_load_c_extension(path); end
45
+ end
46
+ module Concurrent::Synchronization::MriAttrVolatile
47
+ def full_memory_barrier; end
48
+ def self.included(base); end
49
+ end
50
+ module Concurrent::Synchronization::MriAttrVolatile::ClassMethods
51
+ def attr_volatile(*names); end
52
+ end
53
+ class Concurrent::Synchronization::MriObject < Concurrent::Synchronization::AbstractObject
54
+ def initialize; end
55
+ extend Concurrent::Synchronization::MriAttrVolatile::ClassMethods
56
+ include Concurrent::Synchronization::MriAttrVolatile
57
+ end
58
+ module Concurrent::Synchronization::RbxAttrVolatile
59
+ def full_memory_barrier; end
60
+ def self.included(base); end
61
+ end
62
+ module Concurrent::Synchronization::RbxAttrVolatile::ClassMethods
63
+ def attr_volatile(*names); end
64
+ end
65
+ class Concurrent::Synchronization::RbxObject < Concurrent::Synchronization::AbstractObject
66
+ def initialize; end
67
+ extend Concurrent::Synchronization::RbxAttrVolatile::ClassMethods
68
+ include Concurrent::Synchronization::RbxAttrVolatile
69
+ end
70
+ module Concurrent::Synchronization::TruffleRubyAttrVolatile
71
+ def full_memory_barrier; end
72
+ def self.included(base); end
73
+ end
74
+ module Concurrent::Synchronization::TruffleRubyAttrVolatile::ClassMethods
75
+ def attr_volatile(*names); end
76
+ end
77
+ class Concurrent::Synchronization::TruffleRubyObject < Concurrent::Synchronization::AbstractObject
78
+ def initialize; end
79
+ extend Concurrent::Synchronization::TruffleRubyAttrVolatile::ClassMethods
80
+ include Concurrent::Synchronization::TruffleRubyAttrVolatile
81
+ end
82
+ class Concurrent::Synchronization::Object < Concurrent::Synchronization::MriObject
83
+ def __initialize_atomic_fields__; end
84
+ def initialize; end
85
+ def self.atomic_attribute?(name); end
86
+ def self.atomic_attributes(inherited = nil); end
87
+ def self.attr_atomic(*names); end
88
+ def self.define_initialize_atomic_fields; end
89
+ def self.ensure_safe_initialization_when_final_fields_are_present; end
90
+ def self.safe_initialization!; end
91
+ def self.safe_initialization?; end
92
+ end
93
+ class Concurrent::Synchronization::AbstractLockableObject < Concurrent::Synchronization::Object
94
+ def ns_broadcast; end
95
+ def ns_signal; end
96
+ def ns_wait(timeout = nil); end
97
+ def ns_wait_until(timeout = nil, &condition); end
98
+ def synchronize; end
99
+ end
100
+ module Concurrent::Synchronization::ConditionSignalling
101
+ def ns_broadcast; end
102
+ def ns_signal; end
103
+ end
104
+ class Concurrent::Synchronization::MutexLockableObject < Concurrent::Synchronization::AbstractLockableObject
105
+ def initialize(*defaults); end
106
+ def ns_wait(timeout = nil); end
107
+ def self.new(*args, &block); end
108
+ def synchronize; end
109
+ include Concurrent::Synchronization::ConditionSignalling
110
+ end
111
+ class Concurrent::Synchronization::MonitorLockableObject < Concurrent::Synchronization::AbstractLockableObject
112
+ def initialize(*defaults); end
113
+ def ns_wait(timeout = nil); end
114
+ def self.new(*args, &block); end
115
+ def synchronize; end
116
+ include Concurrent::Synchronization::ConditionSignalling
117
+ end
118
+ class Concurrent::Synchronization::RbxLockableObject < Concurrent::Synchronization::AbstractLockableObject
119
+ def initialize(*defaults); end
120
+ def ns_broadcast; end
121
+ def ns_signal; end
122
+ def ns_wait(timeout = nil); end
123
+ def self.new(*args, &block); end
124
+ def synchronize(&block); end
125
+ end
126
+ class Concurrent::Synchronization::LockableObject < Concurrent::Synchronization::MutexLockableObject
127
+ def new_condition; end
128
+ end
129
+ class Concurrent::Synchronization::Condition < Concurrent::Synchronization::LockableObject
130
+ def broadcast; end
131
+ def initialize(lock); end
132
+ def ns_broadcast; end
133
+ def ns_signal; end
134
+ def ns_wait(timeout = nil); end
135
+ def ns_wait_until(timeout = nil, &condition); end
136
+ def self.new(*args, &block); end
137
+ def self.private_new(*args, &block); end
138
+ def signal; end
139
+ def wait(timeout = nil); end
140
+ def wait_until(timeout = nil, &condition); end
141
+ end
142
+ class Concurrent::Synchronization::Lock < Concurrent::Synchronization::LockableObject
143
+ def broadcast; end
144
+ def ns_broadcast; end
145
+ def ns_signal; end
146
+ def ns_wait(timeout = nil); end
147
+ def ns_wait_until(timeout = nil, &condition); end
148
+ def signal; end
149
+ def synchronize; end
150
+ def wait(timeout = nil); end
151
+ def wait_until(timeout = nil, &condition); end
152
+ end
153
+ module Concurrent::Collection
154
+ end
155
+ class Concurrent::Collection::NonConcurrentMapBackend
156
+ def [](key); end
157
+ def []=(key, value); end
158
+ def _get(key); end
159
+ def _set(key, value); end
160
+ def clear; end
161
+ def compute(key); end
162
+ def compute_if_absent(key); end
163
+ def compute_if_present(key); end
164
+ def delete(key); end
165
+ def delete_pair(key, value); end
166
+ def dupped_backend; end
167
+ def each_pair; end
168
+ def get_and_set(key, value); end
169
+ def get_or_default(key, default_value); end
170
+ def initialize(options = nil); end
171
+ def initialize_copy(other); end
172
+ def key?(key); end
173
+ def merge_pair(key, value); end
174
+ def pair?(key, expected_value); end
175
+ def replace_if_exists(key, new_value); end
176
+ def replace_pair(key, old_value, new_value); end
177
+ def size; end
178
+ def store_computed_value(key, new_value); end
179
+ end
180
+ class Concurrent::Collection::MriMapBackend < Concurrent::Collection::NonConcurrentMapBackend
181
+ def []=(key, value); end
182
+ def clear; end
183
+ def compute(key); end
184
+ def compute_if_absent(key); end
185
+ def compute_if_present(key); end
186
+ def delete(key); end
187
+ def delete_pair(key, value); end
188
+ def get_and_set(key, value); end
189
+ def initialize(options = nil); end
190
+ def merge_pair(key, value); end
191
+ def replace_if_exists(key, new_value); end
192
+ def replace_pair(key, old_value, new_value); end
193
+ end
194
+ class Concurrent::Map < Concurrent::Collection::MriMapBackend
195
+ def [](key); end
196
+ def each; end
197
+ def each_key; end
198
+ def each_pair; end
199
+ def each_value; end
200
+ def empty?; end
201
+ def fetch(key, default_value = nil); end
202
+ def fetch_or_store(key, default_value = nil); end
203
+ def get(key); end
204
+ def initialize(options = nil, &block); end
205
+ def initialize_copy(other); end
206
+ def inspect; end
207
+ def key(value); end
208
+ def keys; end
209
+ def marshal_dump; end
210
+ def marshal_load(hash); end
211
+ def populate_from(hash); end
212
+ def put(key, value); end
213
+ def put_if_absent(key, value); end
214
+ def raise_fetch_no_key; end
215
+ def validate_options_hash!(options); end
216
+ def value?(value); end
217
+ def values; end
218
+ end