class Textlocal::Config

Attributes

api_hash[RW]

The API hash of the Textlocal account to use when accessing the API

sender[RW]

this can be overridden on a per-message basis

test[RW]

Access the API in test mode

username[RW]

The username of the Textlocal account to use when accessing the API

Public Class Methods

new() click to toggle source
# File lib/textlocal/config.rb, line 16
def initialize
  @test = false
  @username = ENV['TEXTLOCAL_USER_NAME']
  @api_hash = ENV['TEXTLOCAL_API_HASH']
end

Public Instance Methods

testing?() click to toggle source
# File lib/textlocal/config.rb, line 22
def testing?
  !!@test
end