Class: Sputnik::Plan

Inherits:
Base
  • Object
show all
Defined in:
lib/sputnik/plan.rb

Class Method Summary collapse

Methods inherited from Base

client

Class Method Details

.allObject



4
5
6
7
8
9
10
# File 'lib/sputnik/plan.rb', line 4

def all
  response = client.get('/plans')
  values = []
  response.each do |item|
    values << Plan.new(item)
  end
end