Module: MixinBot::API::LegacySnapshot
- Included in:
- MixinBot::API
- Defined in:
- lib/mixin_bot/api/legacy_snapshot.rb
Instance Method Summary collapse
- #network_snapshot(snapshot_id, **kwargs) ⇒ Object
- #network_snapshots(**kwargs) ⇒ Object
- #snapshots(**kwargs) ⇒ Object
Instance Method Details
#network_snapshot(snapshot_id, **kwargs) ⇒ Object
32 33 34 35 36 |
# File 'lib/mixin_bot/api/legacy_snapshot.rb', line 32 def network_snapshot(snapshot_id, **kwargs) path = format('/network/snapshots/%<snapshot_id>s', snapshot_id:) client.get path, access_token: kwargs[:access_token] end |
#network_snapshots(**kwargs) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/mixin_bot/api/legacy_snapshot.rb', line 6 def network_snapshots(**kwargs) path = '/network/snapshots' params = { limit: kwargs[:limit], offset: kwargs[:offset], asset: kwargs[:asset], order: kwargs[:order] } client.get path, **params, access_token: kwargs[:access_token] end |
#snapshots(**kwargs) ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/mixin_bot/api/legacy_snapshot.rb', line 18 def snapshots(**kwargs) path = '/snapshots' params = { limit: kwargs[:limit], offset: kwargs[:offset], asset: kwargs[:asset], opponent: kwargs[:opponent], order: kwargs[:order] } client.get path, **params, access_token: kwargs[:access_token] end |