Class: Cryptid::Configuration
- Inherits:
-
Object
- Object
- Cryptid::Configuration
- Defined in:
- lib/cryptid/configuration.rb
Instance Attribute Summary collapse
- #event_uri ⇒ Object
- #hostname ⇒ Object
-
#tracker_id ⇒ Object
Returns the value of attribute tracker_id.
Instance Method Summary collapse
Instance Attribute Details
#event_uri ⇒ Object
8 9 10 |
# File 'lib/cryptid/configuration.rb', line 8 def event_uri @event_uri ||= '/api/events' end |
#hostname ⇒ Object
12 13 14 |
# File 'lib/cryptid/configuration.rb', line 12 def hostname @hostname ||= 'https://cryptid.adorable.io' end |
#tracker_id ⇒ Object
Returns the value of attribute tracker_id.
6 7 8 |
# File 'lib/cryptid/configuration.rb', line 6 def tracker_id @tracker_id end |
Instance Method Details
#url ⇒ Object
16 17 18 |
# File 'lib/cryptid/configuration.rb', line 16 def url URI.join(hostname, event_uri).to_s end |