Class: Talkgh::Namespace

Inherits:
Object
  • Object
show all
Defined in:
lib/talkgh/namespace.rb

Direct Known Subclasses

SMS

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Namespace

Returns a new instance of Namespace.



6
7
8
9
10
11
# File 'lib/talkgh/namespace.rb', line 6

def initialize(client)
    @client = client
    @host = self.class.host
    @logger = client.logger
    @api_token = client.api_token
end

Class Method Details

.hostObject



13
14
15
# File 'lib/talkgh/namespace.rb', line 13

def self.host
    @host ||= 'api.talkgh.com/api/'
end

.host=(host) ⇒ Object



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

def self.host=(host)
    @host = host
end