class OFX::Data::Declaration

Constants

DEFAULTS

Attributes

encoding[R]
newfileuid[R]
ofxheader[R]
oldfileuid[R]
security[R]
version[R]

Public Class Methods

[](key) click to toggle source
# File lib/ofx/data/declaration.rb, line 9
def self.[](key)
  new(DEFAULTS.fetch(key))
end
default() click to toggle source
# File lib/ofx/data/declaration.rb, line 13
def self.default
  self[:"2.0.3"]
end
new(opts) click to toggle source
# File lib/ofx/data/declaration.rb, line 19
def initialize(opts)
  @ofxheader = opts.fetch(:ofxheader, "NONE")
  @version = opts.fetch(:version, "NONE")
  @security = opts.fetch(:security, "NONE")
  @encoding = opts.fetch(:encoding, "UTF-8")
  @oldfileuid = opts.fetch(:oldfileuid, "NONE")
  @newfileuid = opts.fetch(:newfileuid, "NONE")
end