Module: MythicBeasts

Defined in:
lib/mythic_beasts.rb,
lib/mythic_beasts/dns.rb,
lib/mythic_beasts/vps.rb,
lib/mythic_beasts/auth.rb,
lib/mythic_beasts/proxy.rb,
lib/mythic_beasts/client.rb,
lib/mythic_beasts/errors.rb,
lib/mythic_beasts/version.rb

Defined Under Namespace

Classes: Auth, AuthenticationError, Client, ConflictError, DNS, Error, NotFoundError, Proxy, RateLimitError, ServerError, VPS, ValidationError

Constant Summary collapse

VERSION =
"0.2.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_keyObject

Returns the value of attribute api_key.



15
16
17
# File 'lib/mythic_beasts.rb', line 15

def api_key
  @api_key
end

.api_secretObject

Returns the value of attribute api_secret.



15
16
17
# File 'lib/mythic_beasts.rb', line 15

def api_secret
  @api_secret
end

Class Method Details

.clientObject



21
22
23
# File 'lib/mythic_beasts.rb', line 21

def client
  @client ||= Client.new(api_key: api_key, api_secret: api_secret)
end

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (MythicBeasts)

    the object that the method was called on



17
18
19
# File 'lib/mythic_beasts.rb', line 17

def configure
  yield self
end