class GoCardlessPro::Resources::ScenarioSimulator
Scenario Simulators allow you to manually trigger and test certain paths that your integration will encounter in the real world. These endpoints are only active in the sandbox environment.
Attributes
id[R]
Public Class Methods
new(object, response = nil)
click to toggle source
Initialize a scenario_simulator resource instance @param object [Hash] an object returned from the API
# File lib/gocardless_pro/resources/scenario_simulator.rb, line 25 def initialize(object, response = nil) @object = object @id = object['id'] @response = response end
Public Instance Methods
api_response()
click to toggle source
# File lib/gocardless_pro/resources/scenario_simulator.rb, line 32 def api_response ApiResponse.new(@response) end
to_h()
click to toggle source
Provides the scenario_simulator resource as a hash of all its readable attributes
# File lib/gocardless_pro/resources/scenario_simulator.rb, line 37 def to_h @object end