Class: Cielo::API30::Request::CreateSaleRequest
- Inherits:
-
CieloRequest
- Object
- CieloRequest
- Cielo::API30::Request::CreateSaleRequest
- Defined in:
- lib/cielo/api30/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.
10 11 12 13 |
# File 'lib/cielo/api30/request/create_sale_request.rb', line 10 def initialize(merchant, environment) super(merchant) @environment = environment end |
Instance Attribute Details
#environment=(value) ⇒ Object
Sets the attribute environment
7 8 9 |
# File 'lib/cielo/api30/request/create_sale_request.rb', line 7 def environment=(value) @environment = value end |