Module: YouCanBookMe::Client::Caligraph

Includes:
YouCanBookMe::Connection::Caligraph
Defined in:
lib/YouCanBookMe/client/caligraph.rb

Constant Summary

Constants included from YouCanBookMe::Connection::Caligraph

YouCanBookMe::Connection::Caligraph::BASE_URL

Instance Method Summary collapse

Instance Method Details

#api_keyObject



10
11
12
13
14
15
# File 'lib/YouCanBookMe/client/caligraph.rb', line 10

def api_key
  params = {
    fields: 'apiKey'
  }
  get('/', params).parse['apiKey']
end

#set_api_keyObject



17
18
19
# File 'lib/YouCanBookMe/client/caligraph.rb', line 17

def set_api_key
  YouCanBookMe.instance_variable_set(:@password, api_key)
end