class Cryptowatch::Wrapper

Attributes

rest_adapter[RW]

Public Class Methods

new(options = nil) click to toggle source
# File lib/cryptowatch/wrapper.rb, line 15
def initialize(options = nil)
  if options == nil
    options = {
      :timeout            => 5,
      :display_infos      => true,
      :display_errors     => true
    }
  end
  @rest_adapter = RestClientAdapter.new(options)
end

Public Instance Methods

get(url) click to toggle source
# File lib/cryptowatch/wrapper.rb, line 26
def get(url)
  return @rest_adapter.get(url)
end