Module: Lessonly::Defaults
- Included in:
- Client
- Defined in:
- lib/lessonly/defaults.rb
Instance Method Summary collapse
- #api_endpoint ⇒ Object
- #api_key ⇒ Object
- #connection_options ⇒ Object
- #domain ⇒ Object
- #media_type ⇒ Object
- #user_agent ⇒ Object
Instance Method Details
#api_endpoint ⇒ Object
9 10 11 |
# File 'lib/lessonly/defaults.rb', line 9 def api_endpoint Lessonly.configuration.root_url end |
#api_key ⇒ Object
5 6 7 |
# File 'lib/lessonly/defaults.rb', line 5 def api_key Lessonly.configuration.api_key end |
#connection_options ⇒ Object
25 26 27 28 29 30 31 32 |
# File 'lib/lessonly/defaults.rb', line 25 def { headers: { accept: media_type, user_agent: user_agent } } end |
#domain ⇒ Object
13 14 15 |
# File 'lib/lessonly/defaults.rb', line 13 def domain Lessonly.configuration.domain end |
#media_type ⇒ Object
21 22 23 |
# File 'lib/lessonly/defaults.rb', line 21 def media_type 'application/json' end |