Class: Fintoc::Institution

Inherits:
Object
  • Object
show all
Defined in:
lib/fintoc/resources/institution.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#countryObject (readonly)

Returns the value of attribute country.



3
4
5
# File 'lib/fintoc/resources/institution.rb', line 3

def country
  @country
end

#idObject (readonly)

Returns the value of attribute id.



3
4
5
# File 'lib/fintoc/resources/institution.rb', line 3

def id
  @id
end

#nameObject (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

#inspectObject



14
15
16
# File 'lib/fintoc/resources/institution.rb', line 14

def inspect
  "<Institution #{@name}>"
end

#to_sObject



10
11
12
# File 'lib/fintoc/resources/institution.rb', line 10

def to_s
  "🏦 #{@name}"
end