Class: NfseCarioca::FakeResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/nfse_carioca/fake_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#methodObject

Returns the value of attribute method.



3
4
5
# File 'lib/nfse_carioca/fake_response.rb', line 3

def method
  @method
end

#objectObject

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

#numberObject



14
15
16
# File 'lib/nfse_carioca/fake_response.rb', line 14

def number
  1
end

#success?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/nfse_carioca/fake_response.rb', line 10

def success?
  true
end

#verification_codeObject



18
19
20
# File 'lib/nfse_carioca/fake_response.rb', line 18

def verification_code
  "XXXX-XXXX"
end