Class: Einvoice::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/einvoice/response.rb

Direct Known Subclasses

NewebResponse

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#responseObject (readonly)

Returns the value of attribute response.



3
4
5
# File 'lib/einvoice/response.rb', line 3

def response
  @response
end

Instance Method Details

#errorsObject

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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