Module: Notificate::Configuration
- Included in:
- Notificate
- Defined in:
- lib/notificate/configuration.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
2 3 4 |
# File 'lib/notificate/configuration.rb', line 2 def @options end |
Instance Method Details
#configure(opts = {}) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/notificate/configuration.rb', line 4 def configure(opts = {}) opts[:protocol] ||= :https opts[:port] ||= 80 @options = Notificate::ObjectifiedHash.new(opts) end |
#request_path ⇒ Object
11 12 13 |
# File 'lib/notificate/configuration.rb', line 11 def request_path "#{.protocol}://#{.hostname}:#{.port}/#{.endpoint}#{.params}" end |