Class: Fiscalizer::Fiscalizers::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/fiscalizer/fiscalizers/base.rb

Direct Known Subclasses

Echo, Invoice, Office

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app_cert_path, password, timeout, demo, ca_cert_path, object) ⇒ Base

rubocop:disable Metrics/ParameterLists



5
6
7
8
9
10
11
12
# File 'lib/fiscalizer/fiscalizers/base.rb', line 5

def initialize(app_cert_path, password, timeout, demo, ca_cert_path, object)
  @app_cert_path = app_cert_path
  @password = password
  @timeout = timeout
  @demo = demo
  @ca_cert_path = ca_cert_path
  @object = object
end

Instance Attribute Details

#app_cert_pathObject (readonly)

Returns the value of attribute app_cert_path.



14
15
16
# File 'lib/fiscalizer/fiscalizers/base.rb', line 14

def app_cert_path
  @app_cert_path
end

#ca_cert_pathObject (readonly)

Returns the value of attribute ca_cert_path.



14
15
16
# File 'lib/fiscalizer/fiscalizers/base.rb', line 14

def ca_cert_path
  @ca_cert_path
end

#demoObject (readonly)

Returns the value of attribute demo.



14
15
16
# File 'lib/fiscalizer/fiscalizers/base.rb', line 14

def demo
  @demo
end

#objectObject (readonly)

Returns the value of attribute object.



14
15
16
# File 'lib/fiscalizer/fiscalizers/base.rb', line 14

def object
  @object
end

#passwordObject (readonly)

Returns the value of attribute password.



14
15
16
# File 'lib/fiscalizer/fiscalizers/base.rb', line 14

def password
  @password
end

#timeoutObject (readonly)

Returns the value of attribute timeout.



14
15
16
# File 'lib/fiscalizer/fiscalizers/base.rb', line 14

def timeout
  @timeout
end

Instance Method Details

#callObject



16
17
18
19
# File 'lib/fiscalizer/fiscalizers/base.rb', line 16

def call
  # check_echo
  send_request
end