Class: Fintoc::Institution
- Inherits:
-
Object
- Object
- Fintoc::Institution
- Defined in:
- lib/fintoc/resources/institution.rb
Instance Attribute Summary collapse
-
#country ⇒ Object
readonly
Returns the value of attribute country.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(id:, name:, country:) ⇒ Institution
constructor
A new instance of Institution.
- #inspect ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(id:, name:, country:) ⇒ Institution
Returns a new instance of Institution.
4 5 6 7 8 |
# File 'lib/fintoc/resources/institution.rb', line 4 def initialize(id:, name:, country:, **) @id = id @name = name @country = country end |
Instance Attribute Details
#country ⇒ Object (readonly)
Returns the value of attribute country.
3 4 5 |
# File 'lib/fintoc/resources/institution.rb', line 3 def country @country end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/fintoc/resources/institution.rb', line 3 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/fintoc/resources/institution.rb', line 3 def name @name end |
Instance Method Details
#inspect ⇒ Object
14 15 16 |
# File 'lib/fintoc/resources/institution.rb', line 14 def inspect "<Institution #{@name}>" end |
#to_s ⇒ Object
10 11 12 |
# File 'lib/fintoc/resources/institution.rb', line 10 def to_s "🏦 #{@name}" end |