Class: Vzaar::SignatureExtractor

Inherits:
Struct
  • Object
show all
Includes:
Helper
Defined in:
lib/vzaar/signature_extractor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helper

#blank?, #hash_to_xml, #symb_keys

Instance Attribute Details

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



2
3
4
# File 'lib/vzaar/signature_extractor.rb', line 2

def data
  @data
end

#formatObject

Returns the value of attribute format

Returns:

  • (Object)

    the current value of format



2
3
4
# File 'lib/vzaar/signature_extractor.rb', line 2

def format
  @format
end

Instance Method Details

#extractObject



5
6
7
# File 'lib/vzaar/signature_extractor.rb', line 5

def extract
  _format == :xml ? from_xml : symb_keys(data)
end