Class: NfseCarioca::FakeResponse
- Inherits:
-
Object
- Object
- NfseCarioca::FakeResponse
- Defined in:
- lib/nfse_carioca/fake_response.rb
Instance Attribute Summary collapse
-
#method ⇒ Object
Returns the value of attribute method.
-
#object ⇒ Object
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(method, object) ⇒ FakeResponse
constructor
A new instance of FakeResponse.
- #number ⇒ Object
- #success? ⇒ Boolean
- #verification_code ⇒ Object
Constructor Details
#initialize(method, object) ⇒ FakeResponse
Returns a new instance of FakeResponse.
5 6 7 8 |
# File 'lib/nfse_carioca/fake_response.rb', line 5 def initialize(method, object) @method = method @object = object end |
Instance Attribute Details
#method ⇒ Object
Returns the value of attribute method.
3 4 5 |
# File 'lib/nfse_carioca/fake_response.rb', line 3 def method @method end |
#object ⇒ Object
Returns the value of attribute object.
3 4 5 |
# File 'lib/nfse_carioca/fake_response.rb', line 3 def object @object end |
Instance Method Details
#number ⇒ Object
14 15 16 |
# File 'lib/nfse_carioca/fake_response.rb', line 14 def number 1 end |
#success? ⇒ Boolean
10 11 12 |
# File 'lib/nfse_carioca/fake_response.rb', line 10 def success? true end |
#verification_code ⇒ Object
18 19 20 |
# File 'lib/nfse_carioca/fake_response.rb', line 18 def verification_code "XXXX-XXXX" end |