class Natgeo::Client

Attributes

url[RW]

Public Class Methods

new(url) click to toggle source
# File lib/natgeo.rb, line 12
def initialize(url)
  @url = url
end

Public Instance Methods

get() click to toggle source
# File lib/natgeo.rb, line 16
def get
  response = HTTParty.get(self.url).to_json
end