Class: Talkgh::Namespace
- Inherits:
-
Object
- Object
- Talkgh::Namespace
- Defined in:
- lib/talkgh/namespace.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(client) ⇒ Namespace
constructor
A new instance of Namespace.
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
.host ⇒ Object
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 |