Class: IbanLookup::IbanCom
- Inherits:
-
Object
- Object
- IbanLookup::IbanCom
- Defined in:
- lib/iban-lookup.rb
Defined Under Namespace
Classes: IbanCalc, IbanChecker
Constant Summary collapse
- URL =
'https://www.iban.com'
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(iban = nil, **options) ⇒ IbanCom
constructor
A new instance of IbanCom.
Constructor Details
#initialize(iban = nil, **options) ⇒ IbanCom
Returns a new instance of IbanCom.
35 36 37 38 39 40 41 |
# File 'lib/iban-lookup.rb', line 35 def initialize(iban = nil, **) @object = if iban IbanChecker.new(iban) else IbanCalc.new() end end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object (private)
159 160 161 |
# File 'lib/iban-lookup.rb', line 159 def method_missing(name, *args) object.send(name, *args) end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
33 34 35 |
# File 'lib/iban-lookup.rb', line 33 def object @object end |