Class: ResourceCollection

Inherits:
Array
  • Object
show all
Defined in:
lib/nordea/resources.rb

Instance Method Summary collapse

Instance Method Details

#[](account_name) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/nordea/resources.rb', line 8

def []()
  if .is_a?(String)
    detect { |e| e.name ==  }
  elsif .is_a?(Regexp)
    detect { |e| e.name =~  }
  else
    super
  end
end