Class: Fintoc::V1::Institution
- Inherits:
-
Object
- Object
- Fintoc::V1::Institution
- Defined in:
- lib/fintoc/v1/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.
6 7 8 9 10 |
# File 'lib/fintoc/v1/resources/institution.rb', line 6 def initialize(id:, name:, country:, **) @id = id @name = name @country = country end |
Instance Attribute Details
#country ⇒ Object (readonly)
Returns the value of attribute country.
4 5 6 |
# File 'lib/fintoc/v1/resources/institution.rb', line 4 def country @country end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/fintoc/v1/resources/institution.rb', line 4 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/fintoc/v1/resources/institution.rb', line 4 def name @name end |
Instance Method Details
#inspect ⇒ Object
16 17 18 |
# File 'lib/fintoc/v1/resources/institution.rb', line 16 def inspect "<Fintoc::V1::Institution #{@name}>" end |
#to_s ⇒ Object
12 13 14 |
# File 'lib/fintoc/v1/resources/institution.rb', line 12 def to_s "🏦 #{@name}" end |