Class: Einvoice::Response
- Inherits:
-
Object
- Object
- Einvoice::Response
- Defined in:
- lib/einvoice/response.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
- #errors ⇒ Object
-
#initialize(response = nil) ⇒ Response
constructor
A new instance of Response.
- #success? ⇒ Boolean
Constructor Details
#initialize(response = nil) ⇒ Response
5 6 7 |
# File 'lib/einvoice/response.rb', line 5 def initialize(response = nil) @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
3 4 5 |
# File 'lib/einvoice/response.rb', line 3 def response @response end |
Instance Method Details
#errors ⇒ Object
9 10 11 |
# File 'lib/einvoice/response.rb', line 9 def errors raise NotImplementedError, 'You must initialize one of Einvoice::Response subclasses then use it.' end |
#success? ⇒ Boolean
13 14 15 |
# File 'lib/einvoice/response.rb', line 13 def success? raise NotImplementedError, 'You must initialize one of Einvoice::Response subclasses then use it.' end |