module Sswars

Constants

VERSION

Public Class Methods

find_people(id) click to toggle source

Class method

# File lib/sswars.rb, line 10
def self.find_people(id)   
  get_name get("/people/#{id}")
  # get("/people/#{id}").parsed_response["name"]
end
find_planet(id) click to toggle source
# File lib/sswars.rb, line 15
def self.find_planet(id)   
  # get("/planets/#{id}").parsed_response["name"]
  get_name get("/planets/#{id}")
end

Private Class Methods

get_name(response) click to toggle source
# File lib/sswars.rb, line 21
def self.get_name(response)
  response.parsed_response["name"]
end