Class: EBICS::User

Inherits:
Object
  • Object
show all
Defined in:
lib/ebics.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject

Returns the value of attribute member_id.



54
55
56
# File 'lib/ebics.rb', line 54

def member_id
  @member_id
end

#partner_idObject

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