class DBots::Poster

A class that posts server count to listing site(s).

Attributes

api_keys[RW]

@return [Hash] the API keys that the poster is using

client_id[RW]

@return [String] the client ID used for posting to a service

keys[RW]

@return [Hash] the API keys that the poster is using

tokens[RW]

@return [Hash] the API keys that the poster is using

Public Class Methods

new(client_id, api_keys: {}) click to toggle source

@param [String, Integer, resolve_id] the client ID used for posting to a service

# File lib/dbots/poster.rb, line 13
def initialize(client_id, api_keys: {})
  @client_id = client_id.respond_to?(:resolve_id) ? client_id.resolve_id.to_s : client_id.to_s
  @api_keys = api_keys
end

Public Instance Methods

inspect() click to toggle source

@!visibility private

# File lib/dbots/poster.rb, line 19
def inspect
  "<#{self.class.name} @client_id=#{@client_id}>"
end