Sha256: 734e157396e397e9205d37eef76736cd653575d4d670e3e8205ac965e6e895a6
Contents?: true
Size: 462 Bytes
Versions: 1
Compression:
Stored size: 462 Bytes
Contents
module Fappu class Connection attr_accessor :base_url, :title, :url, :documentation, :response, :body def initialize(settings={}) @base_url = settings[:base_url] || "https://api.fakku.net/index" # @response = RestClient.get @base_url @response = URI.parse(@base_url).read @body = JSON.parse @response @title = @response['title'] end def base_url @base_url || "https://api.fakku.net" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fappu-1.0.0 | lib/fappu/connection.rb |