Class: HorizonEvent::KeyValuePairing
- Inherits:
-
PayDirt::Base
- Object
- PayDirt::Base
- HorizonEvent::KeyValuePairing
- Defined in:
- lib/horizon_event/key_value_pairing.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(options = {}) ⇒ KeyValuePairing
constructor
A new instance of KeyValuePairing.
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( = {}) = { request_class: HorizonEvent::Request }.merge() # sets instance variables from key value pairs, # will fail if any keys given before options aren't in options (:request_class, :city, :state, ) end |
Instance Method Details
#call ⇒ Object
15 16 17 |
# File 'lib/horizon_event/key_value_pairing.rb', line 15 def call return result(true, key_value_pairing) end |