Module: Terminal::Modules::BrowseSnapshotsAndUsers
Instance Method Summary collapse
-
#count_public_snapshots(username, options = {}) ⇒ Hash
Get count of public snapshots, optionally filtered by the owner's username, a tag, or the snapshot's featured status.
-
#get_profile(username) ⇒ Hash
Get information about a user.
-
#get_snapshot(snapshot_id) ⇒ Hash
Get information about a snapshot.
-
#list_public_snapshots(username, options = {}) ⇒ Hash
List public snapshots, optionally filtered by the owner's username, a tag, or the snapshot's featured status.
Instance Method Details
#count_public_snapshots(username, options = {}) ⇒ Hash
Get count of public snapshots, optionally filtered by the owner's username, a tag, or the snapshot's featured status. Combinations of filters are fine.
61 62 63 64 |
# File 'lib/terminal/modules/browse_snapshots_and_users.rb', line 61 def count_public_snapshots(username, = {}) [:username] = username perform(:post, 'count_public_snapshots', ) end |
#get_profile(username) ⇒ Hash
Get information about a user
25 26 27 |
# File 'lib/terminal/modules/browse_snapshots_and_users.rb', line 25 def get_profile(username) perform(:post, 'get_profile', { :username => username }) end |
#get_snapshot(snapshot_id) ⇒ Hash
Get information about a snapshot
15 16 17 |
# File 'lib/terminal/modules/browse_snapshots_and_users.rb', line 15 def get_snapshot(snapshot_id) perform(:post, 'get_snapshot', { :snapshot_id => snapshot_id }) end |
#list_public_snapshots(username, options = {}) ⇒ Hash
List public snapshots, optionally filtered by the owner's username, a tag, or the snapshot's featured status. Combinations of filters are fine.
44 45 46 47 |
# File 'lib/terminal/modules/browse_snapshots_and_users.rb', line 44 def list_public_snapshots(username, = {}) [:username] = username perform(:post, 'list_public_snapshots', ) end |