Class: Itly::Plugin::Snowplow::Options
- Inherits:
-
Object
- Object
- Itly::Plugin::Snowplow::Options
- Defined in:
- lib/itly/plugin/snowplow/options.rb
Overview
Options for the Snowplow plugin class
Instance Attribute Summary collapse
-
#buffer_size ⇒ Object
readonly
Returns the value of attribute buffer_size.
-
#disabled ⇒ Object
readonly
Returns the value of attribute disabled.
-
#endpoint ⇒ Object
readonly
Returns the value of attribute endpoint.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#protocol ⇒ Object
readonly
Returns the value of attribute protocol.
Instance Method Summary collapse
-
#initialize(endpoint:, protocol: 'http', method: 'get', buffer_size: nil, disabled: false) ⇒ Options
constructor
Instantiate a new Options.
Constructor Details
#initialize(endpoint:, protocol: 'http', method: 'get', buffer_size: nil, disabled: false) ⇒ Options
Instantiate a new Options
26 27 28 29 30 31 32 33 |
# File 'lib/itly/plugin/snowplow/options.rb', line 26 def initialize(endpoint:, protocol: 'http', method: 'get', buffer_size: nil, disabled: false) super() @endpoint = endpoint @protocol = protocol @method = method @buffer_size = buffer_size @disabled = disabled end |
Instance Attribute Details
#buffer_size ⇒ Object (readonly)
Returns the value of attribute buffer_size.
12 13 14 |
# File 'lib/itly/plugin/snowplow/options.rb', line 12 def buffer_size @buffer_size end |
#disabled ⇒ Object (readonly)
Returns the value of attribute disabled.
12 13 14 |
# File 'lib/itly/plugin/snowplow/options.rb', line 12 def disabled @disabled end |
#endpoint ⇒ Object (readonly)
Returns the value of attribute endpoint.
12 13 14 |
# File 'lib/itly/plugin/snowplow/options.rb', line 12 def endpoint @endpoint end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
12 13 14 |
# File 'lib/itly/plugin/snowplow/options.rb', line 12 def method @method end |
#protocol ⇒ Object (readonly)
Returns the value of attribute protocol.
12 13 14 |
# File 'lib/itly/plugin/snowplow/options.rb', line 12 def protocol @protocol end |