Class: BrDanfe::MdfeLib::AuthorizationProtocol

Inherits:
Object
  • Object
show all
Defined in:
lib/br_danfe/mdfe_lib/authorization_protocol.rb

Instance Method Summary collapse

Constructor Details

#initialize(pdf, xml) ⇒ AuthorizationProtocol

Returns a new instance of AuthorizationProtocol.



4
5
6
7
# File 'lib/br_danfe/mdfe_lib/authorization_protocol.rb', line 4

def initialize(pdf, xml)
  @pdf = pdf
  @xml = xml
end

Instance Method Details

#generateObject



9
10
11
# File 'lib/br_danfe/mdfe_lib/authorization_protocol.rb', line 9

def generate
  authorization
end