Class: Braspag::Request::CreateSaleRequest
- Inherits:
-
BraspagRequest
- Object
- BraspagRequest
- Braspag::Request::CreateSaleRequest
- Defined in:
- lib/braspag/api/request/create_sale_request.rb
Instance Attribute Summary collapse
-
#environment ⇒ Object
writeonly
Sets the attribute environment.
Instance Method Summary collapse
- #execute(sale) ⇒ Object
-
#initialize(merchant, environment) ⇒ CreateSaleRequest
constructor
A new instance of CreateSaleRequest.
Constructor Details
#initialize(merchant, environment) ⇒ CreateSaleRequest
Returns a new instance of CreateSaleRequest.
8 9 10 11 12 |
# File 'lib/braspag/api/request/create_sale_request.rb', line 8 def initialize(merchant, environment) super(merchant) @environment = environment end |
Instance Attribute Details
#environment=(value) ⇒ Object
Sets the attribute environment
5 6 7 |
# File 'lib/braspag/api/request/create_sale_request.rb', line 5 def environment=(value) @environment = value end |