Class: HorizonEvent::KeyValuePairing

Inherits:
PayDirt::Base
  • Object
show all
Defined in:
lib/horizon_event/key_value_pairing.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ KeyValuePairing

Returns a new instance of KeyValuePairing.



5
6
7
8
9
10
11
12
13
# File 'lib/horizon_event/key_value_pairing.rb', line 5

def initialize(options = {})
  options = {
    request_class: HorizonEvent::Request
  }.merge(options)

  # sets instance variables from key value pairs,
  # will fail if any keys given before options aren't in options
  load_options(:request_class, :city, :state, options)
end

Instance Method Details

#callObject



15
16
17
# File 'lib/horizon_event/key_value_pairing.rb', line 15

def call
  return result(true, key_value_pairing)
end