Class: Cryptid::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/cryptid/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#event_uriObject



8
9
10
# File 'lib/cryptid/configuration.rb', line 8

def event_uri
  @event_uri ||= '/api/events'
end

#hostnameObject



12
13
14
# File 'lib/cryptid/configuration.rb', line 12

def hostname
  @hostname ||= 'https://cryptid.adorable.io'
end

#tracker_idObject

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

#urlObject



16
17
18
# File 'lib/cryptid/configuration.rb', line 16

def url
  URI.join(hostname, event_uri).to_s
end