class MailinatorClient::Stats

Class containing all the actions for the Stats Resource

Public Class Methods

new(client) click to toggle source
# File lib/mailinator_client/stats.rb, line 30
def initialize(client)
  @client = client
end

Public Instance Methods

get_team(params = {}) click to toggle source

Retrieves team info

Authentication: The client must be configured with a valid api access token to call this action.

Responses:

# File lib/mailinator_client/stats.rb, line 65
def get_team(params = {})
  params = Utils.symbolize_hash_keys(params)
  query_params = { }
  headers = {}
  body = nil

  path = "/team"

  @client.request(
    method: :get,
    path: path,
    query: query_params,
    headers: headers,
    body: body)
end
get_team_stats() click to toggle source

Retrieves stats of team

Authentication: The client must be configured with a valid api access token to call this action.

Responses:

# File lib/mailinator_client/stats.rb, line 42
def get_team_stats()
  query_params = { }
  headers = {}
  body = nil

  path = "/team/stats"

  @client.request(
    method: :get,
    path: path,
    query: query_params,
    headers: headers,
    body: body)
end