Module: Aptible::BillForward::Defaults
- Included in:
- Client
- Defined in:
- lib/aptible/billforward/defaults.rb
Instance Method Summary collapse
- #access_token ⇒ Object
- #api_endpoint ⇒ Object
- #connection_options ⇒ Object
- #media_type ⇒ Object
- #user_agent ⇒ Object
Instance Method Details
#access_token ⇒ Object
6 7 8 |
# File 'lib/aptible/billforward/defaults.rb', line 6 def access_token Aptible::BillForward.configuration.access_token end |
#api_endpoint ⇒ Object
10 11 12 |
# File 'lib/aptible/billforward/defaults.rb', line 10 def api_endpoint Aptible::BillForward.configuration.root_url end |
#connection_options ⇒ Object
22 23 24 25 26 27 28 29 |
# File 'lib/aptible/billforward/defaults.rb', line 22 def { headers: { accept: media_type, user_agent: user_agent } } end |
#media_type ⇒ Object
18 19 20 |
# File 'lib/aptible/billforward/defaults.rb', line 18 def media_type 'application/json' end |
#user_agent ⇒ Object
14 15 16 |
# File 'lib/aptible/billforward/defaults.rb', line 14 def user_agent "aptible-billforward Ruby Gem #{Aptible::BillForward::VERSION}" end |