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
Public Class Methods
Source
# File lib/gocardless_pro/resources/scenario_simulator.rb, line 23 def initialize(object, response = nil) @object = object @id = object['id'] @response = response end
Initialize a scenario_simulator resource instance @param object [Hash] an object returned from the API
Public Instance Methods
Source
# File lib/gocardless_pro/resources/scenario_simulator.rb, line 30 def api_response ApiResponse.new(@response) end
Source
# File lib/gocardless_pro/resources/scenario_simulator.rb, line 35 def to_h @object end
Provides the scenario_simulator resource as a hash of all its readable attributes