Skip to content

Commit d127c83

Browse files
author
Puneet Khushwani
committed
changed manifest to services
1 parent d49c5df commit d127c83

File tree

6 files changed

+17
-18
lines changed

6 files changed

+17
-18
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ ost_sdk = OSTSdk::Saas::Services.new({api_key: <api_key>, api_secret: <api_secre
3838
### Users Module
3939

4040
```ruby
41-
ost_users_object = ost_sdk.manifest.users
41+
ost_users_object = ost_sdk.services.users
4242
```
4343

4444
Create a new user:
@@ -68,7 +68,7 @@ ost_users_object.list({page_no: 1, limit: 5}).to_json
6868
### Airdrops Module
6969

7070
```ruby
71-
ost_airdrop_object = ost_sdk.manifest.airdrops
71+
ost_airdrop_object = ost_sdk.services.airdrops
7272
```
7373

7474
Execute Airdrop:
@@ -91,7 +91,7 @@ ost_airdrop_object.list({page_no: 1, limit: 50, current_status: 'processing,comp
9191
### Token Module
9292

9393
```ruby
94-
ost_token_object = ost_sdk.manifest.token
94+
ost_token_object = ost_sdk.services.token
9595
```
9696

9797
Get details:
@@ -104,7 +104,7 @@ ost_token_object.get({}).to_json
104104

105105

106106
```ruby
107-
ost_action_object = ost_sdk.manifest.actions
107+
ost_action_object = ost_sdk.services.actions
108108
```
109109

110110
Create a new action:
@@ -135,7 +135,7 @@ ost_action_object.list(page_no: 1).to_json
135135
### Transaction Module
136136

137137
```ruby
138-
ost_transaction_object = ost_sdk.manifest.transactions
138+
ost_transaction_object = ost_sdk.services.transactions
139139
```
140140

141141
Execute Transaction:
@@ -157,7 +157,7 @@ ost_transaction_object.list({page_no: 1, limit: 50}).to_json
157157
### Transfer Module
158158

159159
```ruby
160-
ost_transfer_object = ost_sdk.manifest.transfers
160+
ost_transfer_object = ost_sdk.services.transfers
161161
```
162162

163163
Execute Transfer:
@@ -182,7 +182,7 @@ To obtain request/API specification, pass in `true` for the optional `api_spec`
182182

183183
```ruby
184184
ost_sdk = OSTSdk::Saas::Services.new({api_key: <api_key>, api_secret: <api_secret>, api_base_url: <api_base_url>, api_spec: true})
185-
ost_action_object = ost_sdk.manifest.actions
185+
ost_action_object = ost_sdk.services.actions
186186
```
187187

188188
And then call a method:

README_V0.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ ost_sdk = OSTSdk::Saas::Services.new({api_key: <api_key>, api_secret: <api_secre
3939

4040

4141
```ruby
42-
ost_transaction_object = ost_sdk.manifest.transaction_kind
42+
ost_transaction_object = ost_sdk.services.transaction_kind
4343
```
4444

4545
Create new transaction kinds:
@@ -83,7 +83,7 @@ ost_transaction_object.status(transaction_uuids: ['b6f099a3-2a65-431e-b3ec-54056
8383
### Users Module
8484

8585
```ruby
86-
ost_users_object = ost_sdk.manifest.users
86+
ost_users_object = ost_sdk.services.users
8787
```
8888

8989
Create a new user:
@@ -122,7 +122,7 @@ To obtain request/API specification, pass in `true` for the optional `api_spec`
122122

123123
```ruby
124124
ost_sdk = OSTSdk::Saas::Services.new({api_key: <api_key>, api_secret: <api_secret>, api_base_url: <api_base_url>, api_spec: true})
125-
ost_transaction_object = ost_sdk.manifest.transaction_kind
125+
ost_transaction_object = ost_sdk.services.transaction_kind
126126
```
127127

128128
And then call a method:

lib/ost-sdk-ruby/saas.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
require_relative 'saas/base'
44

5-
require_relative 'saas/v0/manifest'
5+
require_relative 'saas/v0/services'
66
require_relative 'saas/v0/transaction_kind'
77
require_relative 'saas/v0/users'
88

9-
require_relative 'saas/v1/manifest'
9+
require_relative 'saas/v1/services'
1010
require_relative 'saas/v1/users'
1111
require_relative 'saas/v1/token'
1212
require_relative 'saas/v1/actions'

lib/ost-sdk-ruby/saas/services.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module Saas
44

55
class Services
66

7-
attr_reader :manifest
7+
attr_reader :services
88

99
# Initialize
1010
#
@@ -36,9 +36,9 @@ def set_manifest(params)
3636
# Provide access to version specific API endpoints
3737
if api_version == ''
3838
# puts("You are using an deprecated version of OST API. Please update to the latest version.")
39-
@manifest = OSTSdk::Saas::V0::Manifest.new(params)
39+
@services = OSTSdk::Saas::V0::Services.new(params)
4040
elsif api_version == 'v1'
41-
@manifest = OSTSdk::Saas::V1::Manifest.new(params)
41+
@services = OSTSdk::Saas::V1::Services.new(params)
4242
else
4343
fail 'Api endpoint is invalid'
4444
end
@@ -54,7 +54,6 @@ def extract_api_version(api_base_url)
5454

5555
end
5656

57-
5857
end
5958

6059
end
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module Saas
44

55
module V0
66

7-
class Manifest
7+
class Services
88

99
attr_reader :transaction_kind, :users
1010

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module Saas
44

55
module V1
66

7-
class Manifest
7+
class Services
88

99
attr_reader :users, :token, :actions, :airdrops, :transactions, :transfers
1010

0 commit comments

Comments
 (0)