syed-subtain 1.11.14 → 6.32.58
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/{apimatic_calculator → apimatic_calcu}/api_helper.rb +2 -2
- data/lib/{apimatic_calculator → apimatic_calcu}/client.rb +3 -3
- data/lib/{apimatic_calculator → apimatic_calcu}/configuration.rb +2 -2
- data/lib/{apimatic_calculator → apimatic_calcu}/controllers/base_controller.rb +2 -2
- data/lib/{apimatic_calculator → apimatic_calcu}/controllers/simple_calculator_controller.rb +2 -2
- data/lib/{apimatic_calculator → apimatic_calcu}/exceptions/api_exception.rb +2 -2
- data/lib/{apimatic_calculator → apimatic_calcu}/http/http_call_back.rb +2 -2
- data/lib/{apimatic_calculator → apimatic_calcu}/http/http_method_enum.rb +2 -2
- data/lib/{apimatic_calculator → apimatic_calcu}/http/http_request.rb +2 -2
- data/lib/{apimatic_calculator → apimatic_calcu}/http/http_response.rb +2 -2
- data/lib/{apimatic_calculator → apimatic_calcu}/models/base_model.rb +2 -2
- data/lib/{apimatic_calculator → apimatic_calcu}/models/operation_type_enum.rb +2 -2
- data/lib/{apimatic_calculator → apimatic_calcu}/utilities/date_time_helper.rb +2 -2
- data/lib/{apimatic_calculator → apimatic_calcu}/utilities/file_wrapper.rb +2 -2
- data/lib/apimatic_calcu.rb +39 -0
- metadata +18 -18
- data/lib/apimatic_calculator.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: 1860ea881512e2b69964486c86ff59d7ad52992f4a47c42132e1f7dae12792d0
|
4
|
+
data.tar.gz: d70a8901bdab96704a4ef57fed555951a74cfb7dde4213c0c7e14c40902ee2a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8695290b626bbe96514a75e4f57a5237af676c927db8365121d6edc89e40b62d519494a5b091e8c1e990e2180d232c9caa946cd1dd618a9a974b2db700a10cf
|
7
|
+
data.tar.gz: 9eb1bfc22bec9f605fe69313bdc016b72177700875f62a4441a904613c0b892b78939165e772729f98a41ea5e9ab643341f9747999d47d117019fbff8609ac29
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
# Getting Started with Apimatic
|
2
|
+
# Getting Started with Apimatic Calcu
|
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
|
13
|
+
gem install syed-subtain -v 6.32.58
|
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', '
|
19
|
+
gem 'syed-subtain', '6.32.58'
|
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/
|
22
|
+
For additional gem details, see the [RubyGems page for the syed-subtain gem](https://rubygems.org/gems/syed-subtain/versions/6.32.58).
|
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/
|
26
|
+
**_Note:_** Documentation for the client can be found [here.](https://www.github.com/Syed-Subtain/new-ruby-repo/tree/6.32.58/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 = ApimaticCalcu::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/
|
53
|
+
* [Simple Calculator](https://www.github.com/Syed-Subtain/new-ruby-repo/tree/6.32.58/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/
|
58
|
-
* [HttpResponse](https://www.github.com/Syed-Subtain/new-ruby-repo/tree/
|
59
|
-
* [HttpRequest](https://www.github.com/Syed-Subtain/new-ruby-repo/tree/
|
57
|
+
* [Utility Classes](https://www.github.com/Syed-Subtain/new-ruby-repo/tree/6.32.58/doc/utility-classes.md)
|
58
|
+
* [HttpResponse](https://www.github.com/Syed-Subtain/new-ruby-repo/tree/6.32.58/doc/http-response.md)
|
59
|
+
* [HttpRequest](https://www.github.com/Syed-Subtain/new-ruby-repo/tree/6.32.58/doc/http-request.md)
|
60
60
|
|
@@ -1,10 +1,10 @@
|
|
1
|
-
#
|
1
|
+
# apimatic_calcu
|
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 ApimaticCalcu
|
7
|
+
# apimatic_calcu client class.
|
8
8
|
class Client
|
9
9
|
include CoreLibrary
|
10
10
|
attr_reader :config
|
@@ -1,9 +1,9 @@
|
|
1
|
-
#
|
1
|
+
# apimatic_calcu
|
2
2
|
#
|
3
3
|
# This file was automatically generated by APIMATIC v2.0
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
|
-
module
|
6
|
+
module ApimaticCalcu
|
7
7
|
# An enum for SDK environments.
|
8
8
|
class Environment
|
9
9
|
# PRODUCTION: This environment connect to the LIVE calculator API
|
@@ -1,9 +1,9 @@
|
|
1
|
-
#
|
1
|
+
# apimatic_calcu
|
2
2
|
#
|
3
3
|
# This file was automatically generated by APIMATIC v2.0
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
|
-
module
|
6
|
+
module ApimaticCalcu
|
7
7
|
# SimpleCalculatorController
|
8
8
|
class SimpleCalculatorController < BaseController
|
9
9
|
# Calculates the expression using the specified operation.
|
@@ -1,9 +1,9 @@
|
|
1
|
-
#
|
1
|
+
# apimatic_calcu
|
2
2
|
#
|
3
3
|
# This file was automatically generated by APIMATIC v2.0
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
|
-
module
|
6
|
+
module ApimaticCalcu
|
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_calcu
|
2
2
|
#
|
3
3
|
# This file was automatically generated by APIMATIC v2.0
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
|
-
module
|
6
|
+
module ApimaticCalcu
|
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_calcu
|
2
2
|
#
|
3
3
|
# This file was automatically generated by APIMATIC v2.0
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
|
-
module
|
6
|
+
module ApimaticCalcu
|
7
7
|
# HTTP Methods Enumeration.
|
8
8
|
class HttpMethodEnum < CoreLibrary::HttpMethod
|
9
9
|
end
|
@@ -1,9 +1,9 @@
|
|
1
|
-
#
|
1
|
+
# apimatic_calcu
|
2
2
|
#
|
3
3
|
# This file was automatically generated by APIMATIC v2.0
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
|
-
module
|
6
|
+
module ApimaticCalcu
|
7
7
|
# Represents a single Http Request.
|
8
8
|
class HttpRequest < CoreLibrary::HttpRequest
|
9
9
|
end
|
@@ -1,9 +1,9 @@
|
|
1
|
-
#
|
1
|
+
# apimatic_calcu
|
2
2
|
#
|
3
3
|
# This file was automatically generated by APIMATIC v2.0
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
|
-
module
|
6
|
+
module ApimaticCalcu
|
7
7
|
# Http response received.
|
8
8
|
class HttpResponse < CoreLibrary::HttpResponse
|
9
9
|
end
|
@@ -1,9 +1,9 @@
|
|
1
|
-
#
|
1
|
+
# apimatic_calcu
|
2
2
|
#
|
3
3
|
# This file was automatically generated by APIMATIC v2.0
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
|
-
module
|
6
|
+
module ApimaticCalcu
|
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_calcu
|
2
2
|
#
|
3
3
|
# This file was automatically generated by APIMATIC v2.0
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
|
-
module
|
6
|
+
module ApimaticCalcu
|
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_calcu
|
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 ApimaticCalcu
|
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_calcu
|
2
2
|
#
|
3
3
|
# This file was automatically generated by APIMATIC v2.0
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
|
-
module
|
6
|
+
module ApimaticCalcu
|
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_calcu
|
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_calcu/api_helper'
|
14
|
+
require_relative 'apimatic_calcu/client'
|
15
|
+
|
16
|
+
# Utilities
|
17
|
+
require_relative 'apimatic_calcu/utilities/file_wrapper'
|
18
|
+
require_relative 'apimatic_calcu/utilities/date_time_helper'
|
19
|
+
|
20
|
+
# Http
|
21
|
+
require_relative 'apimatic_calcu/http/http_call_back'
|
22
|
+
require_relative 'apimatic_calcu/http/http_method_enum'
|
23
|
+
require_relative 'apimatic_calcu/http/http_request'
|
24
|
+
require_relative 'apimatic_calcu/http/http_response'
|
25
|
+
|
26
|
+
# Logger
|
27
|
+
|
28
|
+
# Models
|
29
|
+
require_relative 'apimatic_calcu/models/base_model'
|
30
|
+
require_relative 'apimatic_calcu/models/operation_type_enum'
|
31
|
+
|
32
|
+
# Exceptions
|
33
|
+
require_relative 'apimatic_calcu/exceptions/api_exception'
|
34
|
+
|
35
|
+
require_relative 'apimatic_calcu/configuration'
|
36
|
+
|
37
|
+
# Controllers
|
38
|
+
require_relative 'apimatic_calcu/controllers/base_controller'
|
39
|
+
require_relative 'apimatic_calcu/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:
|
4
|
+
version: 6.32.58
|
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-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apimatic_core_interfaces
|
@@ -60,22 +60,22 @@ 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/
|
78
|
-
homepage:
|
63
|
+
- lib/apimatic_calcu.rb
|
64
|
+
- lib/apimatic_calcu/api_helper.rb
|
65
|
+
- lib/apimatic_calcu/client.rb
|
66
|
+
- lib/apimatic_calcu/configuration.rb
|
67
|
+
- lib/apimatic_calcu/controllers/base_controller.rb
|
68
|
+
- lib/apimatic_calcu/controllers/simple_calculator_controller.rb
|
69
|
+
- lib/apimatic_calcu/exceptions/api_exception.rb
|
70
|
+
- lib/apimatic_calcu/http/http_call_back.rb
|
71
|
+
- lib/apimatic_calcu/http/http_method_enum.rb
|
72
|
+
- lib/apimatic_calcu/http/http_request.rb
|
73
|
+
- lib/apimatic_calcu/http/http_response.rb
|
74
|
+
- lib/apimatic_calcu/models/base_model.rb
|
75
|
+
- lib/apimatic_calcu/models/operation_type_enum.rb
|
76
|
+
- lib/apimatic_calcu/utilities/date_time_helper.rb
|
77
|
+
- lib/apimatic_calcu/utilities/file_wrapper.rb
|
78
|
+
homepage: ''
|
79
79
|
licenses:
|
80
80
|
- MIT
|
81
81
|
metadata: {}
|
data/lib/apimatic_calculator.rb
DELETED
@@ -1,39 +0,0 @@
|
|
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'
|