Class: Fripa::Configuration
- Inherits:
-
Object
- Object
- Fripa::Configuration
- Defined in:
- lib/fripa/configuration.rb
Overview
Configuration for Fripa
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#port ⇒ Object
Returns the value of attribute port.
-
#scheme ⇒ Object
Returns the value of attribute scheme.
-
#verify_ssl ⇒ Object
Returns the value of attribute verify_ssl.
Instance Method Summary collapse
- #api_url ⇒ Object
- #base_url ⇒ Object
-
#initialize(host: nil, port: nil, scheme: "https", verify_ssl: true) ⇒ Configuration
constructor
A new instance of Configuration.
- #login_url ⇒ Object
Constructor Details
#initialize(host: nil, port: nil, scheme: "https", verify_ssl: true) ⇒ Configuration
Returns a new instance of Configuration.
11 12 13 14 15 16 |
# File 'lib/fripa/configuration.rb', line 11 def initialize(host: nil, port: nil, scheme: "https", verify_ssl: true) @host = host @port = port @scheme = scheme @verify_ssl = verify_ssl end |
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
9 10 11 |
# File 'lib/fripa/configuration.rb', line 9 def host @host end |
#port ⇒ Object
Returns the value of attribute port.
9 10 11 |
# File 'lib/fripa/configuration.rb', line 9 def port @port end |
#scheme ⇒ Object
Returns the value of attribute scheme.
9 10 11 |
# File 'lib/fripa/configuration.rb', line 9 def scheme @scheme end |
#verify_ssl ⇒ Object
Returns the value of attribute verify_ssl.
9 10 11 |
# File 'lib/fripa/configuration.rb', line 9 def verify_ssl @verify_ssl end |
Instance Method Details
#api_url ⇒ Object
26 27 28 |
# File 'lib/fripa/configuration.rb', line 26 def api_url build_uri(path: "/ipa/session/json") end |
#base_url ⇒ Object
18 19 20 |
# File 'lib/fripa/configuration.rb', line 18 def base_url build_uri end |
#login_url ⇒ Object
22 23 24 |
# File 'lib/fripa/configuration.rb', line 22 def login_url build_uri(path: "/ipa/session/login_password") end |