Class: Hypofriend::Offer

Inherits:
Object
  • Object
show all
Defined in:
lib/hypofriend/offer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(institution_name:, borrowing_rate:) ⇒ Offer

Returns a new instance of Offer.



7
8
9
10
# File 'lib/hypofriend/offer.rb', line 7

def initialize(institution_name:, borrowing_rate:)
  @institution_name = institution_name
  @borrowing_rate = borrowing_rate
end

Instance Attribute Details

#borrowing_rateObject (readonly)

Returns the value of attribute borrowing_rate.



5
6
7
# File 'lib/hypofriend/offer.rb', line 5

def borrowing_rate
  @borrowing_rate
end

#institution_nameObject (readonly)

Returns the value of attribute institution_name.



5
6
7
# File 'lib/hypofriend/offer.rb', line 5

def institution_name
  @institution_name
end