module Harpy

Public Class Methods

client() click to toggle source
# File lib/harpy.rb, line 23
def self.client
  @client ||= Client.new
end
client=(new_client) click to toggle source
# File lib/harpy.rb, line 19
def self.client=(new_client)
  @client = new_client
end
entry_point() click to toggle source
# File lib/harpy.rb, line 39
def self.entry_point
  @entry_point || raise(EntryPointRequired, 'you can setup one with Harpy.entry_point_url = "http://localhost"')
end
entry_point=(value) click to toggle source
# File lib/harpy.rb, line 35
def self.entry_point=(value)
  @entry_point = value
end
entry_point_url() click to toggle source
# File lib/harpy.rb, line 31
def self.entry_point_url
  @entry_point.url if @entry_point
end
entry_point_url=(url) click to toggle source
# File lib/harpy.rb, line 27
def self.entry_point_url=(url)
  @entry_point = EntryPoint.new url
end
gem_version() click to toggle source
# File lib/harpy/gem_version.rb, line 2
def self.gem_version
  Gem::Version.new VERSION::STRING
end
reset() click to toggle source
# File lib/harpy.rb, line 43
def self.reset
  @client = nil
  @entry_point = nil
end
version() click to toggle source
# File lib/harpy/version.rb, line 6
def self.version
  gem_version
end