Class: Vzaar::SignatureExtractor
- Inherits:
-
Struct
- Object
- Struct
- Vzaar::SignatureExtractor
- Includes:
- Helper
- Defined in:
- lib/vzaar/signature_extractor.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#format ⇒ Object
Returns the value of attribute format.
Instance Method Summary collapse
Methods included from Helper
#blank?, #hash_to_xml, #symb_keys
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
2 3 4 |
# File 'lib/vzaar/signature_extractor.rb', line 2 def data @data end |
#format ⇒ Object
Returns the value of attribute format
2 3 4 |
# File 'lib/vzaar/signature_extractor.rb', line 2 def format @format end |
Instance Method Details
#extract ⇒ Object
5 6 7 |
# File 'lib/vzaar/signature_extractor.rb', line 5 def extract _format == :xml ? from_xml : symb_keys(data) end |