syed-subtain 1.2.356 → 1.11.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -10
- data/lib/{apimaticcalculator → apimatic_calculator}/api_helper.rb +2 -2
- data/lib/{apimaticcalculator → apimatic_calculator}/client.rb +3 -3
- data/lib/{apimaticcalculator → apimatic_calculator}/configuration.rb +2 -2
- data/lib/{apimaticcalculator → apimatic_calculator}/controllers/base_controller.rb +2 -2
- data/lib/{apimaticcalculator → apimatic_calculator}/controllers/simple_calculator_controller.rb +2 -2
- data/lib/{apimaticcalculator → apimatic_calculator}/exceptions/api_exception.rb +2 -2
- data/lib/{apimaticcalculator → apimatic_calculator}/http/http_call_back.rb +2 -2
- data/lib/{apimaticcalculator → apimatic_calculator}/http/http_method_enum.rb +2 -2
- data/lib/{apimaticcalculator → apimatic_calculator}/http/http_request.rb +2 -2
- data/lib/{apimaticcalculator → apimatic_calculator}/http/http_response.rb +2 -2
- data/lib/{apimaticcalculator → apimatic_calculator}/models/base_model.rb +2 -2
- data/lib/{apimaticcalculator → apimatic_calculator}/models/operation_type_enum.rb +2 -2
- data/lib/{apimaticcalculator → apimatic_calculator}/utilities/date_time_helper.rb +2 -2
- data/lib/{apimaticcalculator → apimatic_calculator}/utilities/file_wrapper.rb +2 -2
- data/lib/apimatic_calculator.rb +39 -0
- metadata +17 -17
- data/lib/apimaticcalculator.rb +0 -39
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05c2ef7b5b513ac5e84452c24477e1502bc49b39efd474fb2d623733edb9fcb5
|
4
|
+
data.tar.gz: d1a26ee56917a1a6764fba7ef7876370c2dd3ed757bad4a12f4a8080e17eb868
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a05cc7db4b91dd74ddd1f3849ff2d6c33180cb98c95601d07492d16db31e8977a55ea39cd093c1e0ee1f8460d29f425ac6a7f7b258cbfb045f6a527325c1afe4
|
7
|
+
data.tar.gz: 76908b88ac2c16ba1299a4290e4188ba5b01b282a98a0008671b39ad509f34493efc5a6e523087f2d30a954d5c9e26373fb103b9ebd7338d1bf926c351c3e23e
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
# Getting Started with
|
2
|
+
# Getting Started with Apimatic Calculator
|
3
3
|
|
4
4
|
## Introduction
|
5
5
|
|
@@ -10,20 +10,20 @@ Simple calculator API hosted on APIMATIC
|
|
10
10
|
Install the gem from the command line:
|
11
11
|
|
12
12
|
```ruby
|
13
|
-
gem install syed-subtain -v 1.
|
13
|
+
gem install syed-subtain -v 1.11.14
|
14
14
|
```
|
15
15
|
|
16
16
|
Or add the gem to your Gemfile and run `bundle`:
|
17
17
|
|
18
18
|
```ruby
|
19
|
-
gem 'syed-subtain', '1.
|
19
|
+
gem 'syed-subtain', '1.11.14'
|
20
20
|
```
|
21
21
|
|
22
|
-
For additional gem details, see the [RubyGems page for the syed-subtain gem](https://rubygems.org/gems/syed-subtain/versions/1.
|
22
|
+
For additional gem details, see the [RubyGems page for the syed-subtain gem](https://rubygems.org/gems/syed-subtain/versions/1.11.14).
|
23
23
|
|
24
24
|
## Initialize the API Client
|
25
25
|
|
26
|
-
**_Note:_** Documentation for the client can be found [here.](https://www.github.com/Syed-Subtain/new-ruby-repo/tree/1.
|
26
|
+
**_Note:_** Documentation for the client can be found [here.](https://www.github.com/Syed-Subtain/new-ruby-repo/tree/1.11.14/doc/client.md)
|
27
27
|
|
28
28
|
The following parameters are configurable for the API Client:
|
29
29
|
|
@@ -43,18 +43,18 @@ The following parameters are configurable for the API Client:
|
|
43
43
|
The API client can be initialized as follows:
|
44
44
|
|
45
45
|
```ruby
|
46
|
-
client =
|
46
|
+
client = ApimaticCalculator::Client.new(
|
47
47
|
environment: Environment::PRODUCTION
|
48
48
|
)
|
49
49
|
```
|
50
50
|
|
51
51
|
## List of APIs
|
52
52
|
|
53
|
-
* [Simple Calculator](https://www.github.com/Syed-Subtain/new-ruby-repo/tree/1.
|
53
|
+
* [Simple Calculator](https://www.github.com/Syed-Subtain/new-ruby-repo/tree/1.11.14/doc/controllers/simple-calculator.md)
|
54
54
|
|
55
55
|
## Classes Documentation
|
56
56
|
|
57
|
-
* [Utility Classes](https://www.github.com/Syed-Subtain/new-ruby-repo/tree/1.
|
58
|
-
* [HttpResponse](https://www.github.com/Syed-Subtain/new-ruby-repo/tree/1.
|
59
|
-
* [HttpRequest](https://www.github.com/Syed-Subtain/new-ruby-repo/tree/1.
|
57
|
+
* [Utility Classes](https://www.github.com/Syed-Subtain/new-ruby-repo/tree/1.11.14/doc/utility-classes.md)
|
58
|
+
* [HttpResponse](https://www.github.com/Syed-Subtain/new-ruby-repo/tree/1.11.14/doc/http-response.md)
|
59
|
+
* [HttpRequest](https://www.github.com/Syed-Subtain/new-ruby-repo/tree/1.11.14/doc/http-request.md)
|
60
60
|
|
@@ -1,9 +1,9 @@
|
|
1
|
-
#
|
1
|
+
# apimatic_calculator
|
2
2
|
#
|
3
3
|
# This file was automatically generated by APIMATIC v2.0
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
|
-
module
|
6
|
+
module ApimaticCalculator
|
7
7
|
# API utility class
|
8
8
|
class APIHelper < CoreLibrary::ApiHelper
|
9
9
|
end
|
@@ -1,10 +1,10 @@
|
|
1
|
-
#
|
1
|
+
# apimatic_calculator
|
2
2
|
#
|
3
3
|
# This file was automatically generated by APIMATIC v2.0
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
|
-
module
|
7
|
-
#
|
6
|
+
module ApimaticCalculator
|
7
|
+
# apimatic_calculator client class.
|
8
8
|
class Client
|
9
9
|
include CoreLibrary
|
10
10
|
attr_reader :config
|
@@ -1,9 +1,9 @@
|
|
1
|
-
#
|
1
|
+
# apimatic_calculator
|
2
2
|
#
|
3
3
|
# This file was automatically generated by APIMATIC v2.0
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
|
-
module
|
6
|
+
module ApimaticCalculator
|
7
7
|
# An enum for SDK environments.
|
8
8
|
class Environment
|
9
9
|
# PRODUCTION: This environment connect to the LIVE calculator API
|
data/lib/{apimaticcalculator → apimatic_calculator}/controllers/simple_calculator_controller.rb
RENAMED
@@ -1,9 +1,9 @@
|
|
1
|
-
#
|
1
|
+
# apimatic_calculator
|
2
2
|
#
|
3
3
|
# This file was automatically generated by APIMATIC v2.0
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
|
-
module
|
6
|
+
module ApimaticCalculator
|
7
7
|
# SimpleCalculatorController
|
8
8
|
class SimpleCalculatorController < BaseController
|
9
9
|
# Calculates the expression using the specified operation.
|
@@ -1,9 +1,9 @@
|
|
1
|
-
#
|
1
|
+
# apimatic_calculator
|
2
2
|
#
|
3
3
|
# This file was automatically generated by APIMATIC v2.0
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
|
-
module
|
6
|
+
module ApimaticCalculator
|
7
7
|
# Class for exceptions when there is a network error, status code error, etc.
|
8
8
|
class APIException < CoreLibrary::ApiException
|
9
9
|
end
|
@@ -1,9 +1,9 @@
|
|
1
|
-
#
|
1
|
+
# apimatic_calculator
|
2
2
|
#
|
3
3
|
# This file was automatically generated by APIMATIC v2.0
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
|
-
module
|
6
|
+
module ApimaticCalculator
|
7
7
|
# HttpCallBack allows defining callables for pre and post API calls.
|
8
8
|
class HttpCallBack < CoreLibrary::HttpCallback
|
9
9
|
end
|
@@ -1,9 +1,9 @@
|
|
1
|
-
#
|
1
|
+
# apimatic_calculator
|
2
2
|
#
|
3
3
|
# This file was automatically generated by APIMATIC v2.0
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
|
-
module
|
6
|
+
module ApimaticCalculator
|
7
7
|
# HTTP Methods Enumeration.
|
8
8
|
class HttpMethodEnum < CoreLibrary::HttpMethod
|
9
9
|
end
|
@@ -1,9 +1,9 @@
|
|
1
|
-
#
|
1
|
+
# apimatic_calculator
|
2
2
|
#
|
3
3
|
# This file was automatically generated by APIMATIC v2.0
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
|
-
module
|
6
|
+
module ApimaticCalculator
|
7
7
|
# Represents a single Http Request.
|
8
8
|
class HttpRequest < CoreLibrary::HttpRequest
|
9
9
|
end
|
@@ -1,9 +1,9 @@
|
|
1
|
-
#
|
1
|
+
# apimatic_calculator
|
2
2
|
#
|
3
3
|
# This file was automatically generated by APIMATIC v2.0
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
|
-
module
|
6
|
+
module ApimaticCalculator
|
7
7
|
# Http response received.
|
8
8
|
class HttpResponse < CoreLibrary::HttpResponse
|
9
9
|
end
|
@@ -1,9 +1,9 @@
|
|
1
|
-
#
|
1
|
+
# apimatic_calculator
|
2
2
|
#
|
3
3
|
# This file was automatically generated by APIMATIC v2.0
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
|
-
module
|
6
|
+
module ApimaticCalculator
|
7
7
|
# Base model.
|
8
8
|
class BaseModel < CoreLibrary::BaseModel
|
9
9
|
# Returns a Hash representation of the current object.
|
@@ -1,9 +1,9 @@
|
|
1
|
-
#
|
1
|
+
# apimatic_calculator
|
2
2
|
#
|
3
3
|
# This file was automatically generated by APIMATIC v2.0
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
|
-
module
|
6
|
+
module ApimaticCalculator
|
7
7
|
# Possible operators are sum, subtract, multiply, divide
|
8
8
|
class OperationTypeEnum
|
9
9
|
OPERATION_TYPE_ENUM = [
|
@@ -1,10 +1,10 @@
|
|
1
|
-
#
|
1
|
+
# apimatic_calculator
|
2
2
|
#
|
3
3
|
# This file was automatically generated by APIMATIC v2.0
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
6
|
require 'date'
|
7
|
-
module
|
7
|
+
module ApimaticCalculator
|
8
8
|
# A utility that supports dateTime conversion to different formats
|
9
9
|
class DateTimeHelper < CoreLibrary::DateTimeHelper
|
10
10
|
end
|
@@ -1,9 +1,9 @@
|
|
1
|
-
#
|
1
|
+
# apimatic_calculator
|
2
2
|
#
|
3
3
|
# This file was automatically generated by APIMATIC v2.0
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
|
-
module
|
6
|
+
module ApimaticCalculator
|
7
7
|
# A utility to allow users to set the content-type for files
|
8
8
|
class FileWrapper < CoreLibrary::FileWrapper
|
9
9
|
# The constructor.
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# apimatic_calculator
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
require 'date'
|
7
|
+
require 'json'
|
8
|
+
|
9
|
+
require 'apimatic_core_interfaces'
|
10
|
+
require 'apimatic_core'
|
11
|
+
require 'apimatic_faraday_client_adapter'
|
12
|
+
|
13
|
+
require_relative 'apimatic_calculator/api_helper'
|
14
|
+
require_relative 'apimatic_calculator/client'
|
15
|
+
|
16
|
+
# Utilities
|
17
|
+
require_relative 'apimatic_calculator/utilities/file_wrapper'
|
18
|
+
require_relative 'apimatic_calculator/utilities/date_time_helper'
|
19
|
+
|
20
|
+
# Http
|
21
|
+
require_relative 'apimatic_calculator/http/http_call_back'
|
22
|
+
require_relative 'apimatic_calculator/http/http_method_enum'
|
23
|
+
require_relative 'apimatic_calculator/http/http_request'
|
24
|
+
require_relative 'apimatic_calculator/http/http_response'
|
25
|
+
|
26
|
+
# Logger
|
27
|
+
|
28
|
+
# Models
|
29
|
+
require_relative 'apimatic_calculator/models/base_model'
|
30
|
+
require_relative 'apimatic_calculator/models/operation_type_enum'
|
31
|
+
|
32
|
+
# Exceptions
|
33
|
+
require_relative 'apimatic_calculator/exceptions/api_exception'
|
34
|
+
|
35
|
+
require_relative 'apimatic_calculator/configuration'
|
36
|
+
|
37
|
+
# Controllers
|
38
|
+
require_relative 'apimatic_calculator/controllers/base_controller'
|
39
|
+
require_relative 'apimatic_calculator/controllers/simple_calculator_controller'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: syed-subtain
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.11.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Syed subtain
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apimatic_core_interfaces
|
@@ -60,21 +60,21 @@ extra_rdoc_files: []
|
|
60
60
|
files:
|
61
61
|
- LICENSE
|
62
62
|
- README.md
|
63
|
-
- lib/
|
64
|
-
- lib/
|
65
|
-
- lib/
|
66
|
-
- lib/
|
67
|
-
- lib/
|
68
|
-
- lib/
|
69
|
-
- lib/
|
70
|
-
- lib/
|
71
|
-
- lib/
|
72
|
-
- lib/
|
73
|
-
- lib/
|
74
|
-
- lib/
|
75
|
-
- lib/
|
76
|
-
- lib/
|
77
|
-
- lib/
|
63
|
+
- lib/apimatic_calculator.rb
|
64
|
+
- lib/apimatic_calculator/api_helper.rb
|
65
|
+
- lib/apimatic_calculator/client.rb
|
66
|
+
- lib/apimatic_calculator/configuration.rb
|
67
|
+
- lib/apimatic_calculator/controllers/base_controller.rb
|
68
|
+
- lib/apimatic_calculator/controllers/simple_calculator_controller.rb
|
69
|
+
- lib/apimatic_calculator/exceptions/api_exception.rb
|
70
|
+
- lib/apimatic_calculator/http/http_call_back.rb
|
71
|
+
- lib/apimatic_calculator/http/http_method_enum.rb
|
72
|
+
- lib/apimatic_calculator/http/http_request.rb
|
73
|
+
- lib/apimatic_calculator/http/http_response.rb
|
74
|
+
- lib/apimatic_calculator/models/base_model.rb
|
75
|
+
- lib/apimatic_calculator/models/operation_type_enum.rb
|
76
|
+
- lib/apimatic_calculator/utilities/date_time_helper.rb
|
77
|
+
- lib/apimatic_calculator/utilities/file_wrapper.rb
|
78
78
|
homepage: https://apimatic.io
|
79
79
|
licenses:
|
80
80
|
- MIT
|
data/lib/apimaticcalculator.rb
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
# apimaticcalculator
|
2
|
-
#
|
3
|
-
# This file was automatically generated by APIMATIC v2.0
|
4
|
-
# ( https://apimatic.io ).
|
5
|
-
|
6
|
-
require 'date'
|
7
|
-
require 'json'
|
8
|
-
|
9
|
-
require 'apimatic_core_interfaces'
|
10
|
-
require 'apimatic_core'
|
11
|
-
require 'apimatic_faraday_client_adapter'
|
12
|
-
|
13
|
-
require_relative 'apimaticcalculator/api_helper'
|
14
|
-
require_relative 'apimaticcalculator/client'
|
15
|
-
|
16
|
-
# Utilities
|
17
|
-
require_relative 'apimaticcalculator/utilities/file_wrapper'
|
18
|
-
require_relative 'apimaticcalculator/utilities/date_time_helper'
|
19
|
-
|
20
|
-
# Http
|
21
|
-
require_relative 'apimaticcalculator/http/http_call_back'
|
22
|
-
require_relative 'apimaticcalculator/http/http_method_enum'
|
23
|
-
require_relative 'apimaticcalculator/http/http_request'
|
24
|
-
require_relative 'apimaticcalculator/http/http_response'
|
25
|
-
|
26
|
-
# Logger
|
27
|
-
|
28
|
-
# Models
|
29
|
-
require_relative 'apimaticcalculator/models/base_model'
|
30
|
-
require_relative 'apimaticcalculator/models/operation_type_enum'
|
31
|
-
|
32
|
-
# Exceptions
|
33
|
-
require_relative 'apimaticcalculator/exceptions/api_exception'
|
34
|
-
|
35
|
-
require_relative 'apimaticcalculator/configuration'
|
36
|
-
|
37
|
-
# Controllers
|
38
|
-
require_relative 'apimaticcalculator/controllers/base_controller'
|
39
|
-
require_relative 'apimaticcalculator/controllers/simple_calculator_controller'
|