Class: BankLink::Mac::Base
- Inherits:
-
Object
- Object
- BankLink::Mac::Base
- Defined in:
- lib/bank_link/mac/base.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#link ⇒ Object
Returns the value of attribute link.
Instance Method Summary collapse
- #generate(*args) ⇒ Object
-
#initialize(link, data) ⇒ Base
constructor
A new instance of Base.
- #key(*args) ⇒ Object
- #keys(version, type = :request) ⇒ Object
- #query_key(*args) ⇒ Object
- #settings(*args, &block) ⇒ Object
- #verify(*args) ⇒ Object
Constructor Details
#initialize(link, data) ⇒ Base
Returns a new instance of Base.
10 11 12 13 |
# File 'lib/bank_link/mac/base.rb', line 10 def initialize link, data self.link = link self.data = data end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
4 5 6 |
# File 'lib/bank_link/mac/base.rb', line 4 def data @data end |
#link ⇒ Object
Returns the value of attribute link.
4 5 6 |
# File 'lib/bank_link/mac/base.rb', line 4 def link @link end |
Instance Method Details
#generate(*args) ⇒ Object
15 16 17 |
# File 'lib/bank_link/mac/base.rb', line 15 def generate *args raise NotImplementedError end |
#key(*args) ⇒ Object
19 20 21 |
# File 'lib/bank_link/mac/base.rb', line 19 def key *args raise NotImplementedError end |
#keys(version, type = :request) ⇒ Object
31 32 33 |
# File 'lib/bank_link/mac/base.rb', line 31 def keys version, type=:request BankLink.configuration.mac_fields[query_key][type][version.intern] end |
#query_key(*args) ⇒ Object
23 24 25 |
# File 'lib/bank_link/mac/base.rb', line 23 def query_key *args raise NotImplementedError end |
#settings(*args, &block) ⇒ Object
6 7 8 |
# File 'lib/bank_link/mac/base.rb', line 6 def settings *args, &block link.settings *args, &block end |
#verify(*args) ⇒ Object
27 28 29 |
# File 'lib/bank_link/mac/base.rb', line 27 def verify *args raise NotImplementedError end |