Class: Kiva::LendingAction
- Inherits:
-
Object
- Object
- Kiva::LendingAction
- Includes:
- Api, DynamicInitializer
- Defined in:
- lib/ruby-kiva/lending_action.rb
Instance Attribute Summary collapse
-
#basket_amount ⇒ Object
Returns the value of attribute basket_amount.
-
#id ⇒ Object
Returns the value of attribute id.
-
#sector ⇒ Object
Returns the value of attribute sector.
Class Method Summary collapse
- .newest(options = {}) ⇒ Object (also: recent)
Methods included from DynamicInitializer
Methods included from Api
app_id, app_id=, friendly, friendly=, included
Instance Attribute Details
#basket_amount ⇒ Object
Returns the value of attribute basket_amount.
6 7 8 |
# File 'lib/ruby-kiva/lending_action.rb', line 6 def basket_amount @basket_amount end |
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/ruby-kiva/lending_action.rb', line 6 def id @id end |
#sector ⇒ Object
Returns the value of attribute sector.
6 7 8 |
# File 'lib/ruby-kiva/lending_action.rb', line 6 def sector @sector end |
Class Method Details
.newest(options = {}) ⇒ Object Also known as: recent
13 14 15 |
# File 'lib/ruby-kiva/lending_action.rb', line 13 def self.newest( = {}) json_to_paged_array(get('/lending_actions/recent.json'), 'lending_actions', true) end |