Class: Fiscalizer::Serializers::Base

Inherits:
Object
  • Object
show all
Includes:
Constants
Defined in:
lib/fiscalizer/serializers/base.rb

Direct Known Subclasses

Echo, Invoice, Office

Constant Summary

Constants included from Constants

Constants::DEMO_CERT_ISSUER, Constants::DEMO_URL, Constants::PROD_CERT_ISSUER, Constants::PROD_URL, Constants::SCHEMA_LOCATION, Constants::TNS, Constants::XSI

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object, private_key, public_key, demo) ⇒ Base

Returns a new instance of Base.



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

def initialize(object, private_key, public_key, demo)
  @object = object
  @private_key = private_key
  @public_key = public_key
  @demo = demo
end

Instance Attribute Details

#demoObject (readonly)

Returns the value of attribute demo.



13
14
15
# File 'lib/fiscalizer/serializers/base.rb', line 13

def demo
  @demo
end

#objectObject (readonly)

Returns the value of attribute object.



13
14
15
# File 'lib/fiscalizer/serializers/base.rb', line 13

def object
  @object
end

#private_keyObject (readonly)

Returns the value of attribute private_key.



13
14
15
# File 'lib/fiscalizer/serializers/base.rb', line 13

def private_key
  @private_key
end

#public_keyObject (readonly)

Returns the value of attribute public_key.



13
14
15
# File 'lib/fiscalizer/serializers/base.rb', line 13

def public_key
  @public_key
end

Instance Method Details

#callObject



15
16
17
# File 'lib/fiscalizer/serializers/base.rb', line 15

def call
  sign_xml
end