Class: Kiva::Release
- Inherits:
-
Object
- Object
- Kiva::Release
- Defined in:
- lib/kiva.rb
Overview
Release information concerning the webapi. This is not the release number of the ruby library!
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#id ⇒ Object
Returns the value of attribute id.
Class Method Summary collapse
-
.load ⇒ Object
Returns release information .
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date.
561 562 563 |
# File 'lib/kiva.rb', line 561 def date @date end |
#id ⇒ Object
Returns the value of attribute id.
562 563 564 |
# File 'lib/kiva.rb', line 562 def id @id end |
Class Method Details
.load ⇒ Object
Returns release information
====Returns
an array of Partner instances
====Corresponds http://developers.wiki.kiva.org/KivaAPI#releases/api/current
575 576 577 578 579 |
# File 'lib/kiva.rb', line 575 def load url = "http://api.kivaws.org/v1/releases/api/current.json" raw = JSON.parse(Kiva.execute(url)) Kiva._fill(self.new, raw["release"]) end |