Module: Nfeiow::Helpers
- Included in:
- Client
- Defined in:
- lib/nfeiow/helpers.rb
Defined Under Namespace
Classes: RequestResut
Instance Method Summary collapse
Instance Method Details
#headers ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/nfeiow/helpers.rb', line 7 def headers { "Content-Type": 'application/json', 'Accept': 'application/json', 'Authorization': api_key } end |
#result(success, error, value) ⇒ Object
15 16 17 |
# File 'lib/nfeiow/helpers.rb', line 15 def result(success, error, value) RequestResut.new(success, error, value) end |