Class: Kiva::LendingAction

Inherits:
Object
  • Object
show all
Includes:
Api, DynamicInitializer
Defined in:
lib/ruby-kiva/lending_action.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from DynamicInitializer

included

Methods included from Api

app_id, app_id=, friendly, friendly=, included

Instance Attribute Details

#basket_amountObject

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

#idObject

Returns the value of attribute id.



6
7
8
# File 'lib/ruby-kiva/lending_action.rb', line 6

def id
  @id
end

#sectorObject

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(options = {})
  json_to_paged_array(get('/lending_actions/recent.json'), 'lending_actions', true)
end