Class: EBICS::User
- Inherits:
-
Object
- Object
- EBICS::User
- Defined in:
- lib/ebics.rb
Instance Attribute Summary collapse
-
#member_id ⇒ Object
Returns the value of attribute member_id.
-
#partner_id ⇒ Object
Returns the value of attribute partner_id.
Instance Method Summary collapse
-
#initialize(&block) ⇒ User
constructor
A new instance of User.
- #initialize_key(type) ⇒ Object
- #key(type) ⇒ Object
Constructor Details
#initialize(&block) ⇒ User
Returns a new instance of User.
55 56 57 58 |
# File 'lib/ebics.rb', line 55 def initialize(&block) @key_initializer = block @keys = {} end |
Instance Attribute Details
#member_id ⇒ Object
Returns the value of attribute member_id.
54 55 56 |
# File 'lib/ebics.rb', line 54 def member_id @member_id end |
#partner_id ⇒ Object
Returns the value of attribute partner_id.
53 54 55 |
# File 'lib/ebics.rb', line 53 def partner_id @partner_id end |
Instance Method Details
#initialize_key(type) ⇒ Object
64 65 66 67 68 |
# File 'lib/ebics.rb', line 64 def initialize_key(type) key = Key.new(type) @key_initializer.call(key) return key end |
#key(type) ⇒ Object
60 61 62 |
# File 'lib/ebics.rb', line 60 def key(type) @keys[type.to_sym] || (@keys[type] = initialize_key(type)) end |