Module: Guidestar

Defined in:
lib/guidestar.rb,
lib/guidestar/error.rb,
lib/guidestar/client.rb,
lib/guidestar/result.rb,
lib/guidestar/request.rb,
lib/guidestar/version.rb,
lib/guidestar/connection.rb,
lib/guidestar/client/search.rb

Defined Under Namespace

Modules: Connection, Request Classes: BadGateway, BadRequest, Chain, Client, Error, Forbidden, InternalServerError, MissingInformation, NotAcceptable, NotFound, NotImplemented, Result, SeeOther, ServiceUnavailable, Unauthorized, UnprocessableEntity

Constant Summary collapse

VERSION =
"0.3.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.default_endpointObject

Returns the value of attribute default_endpoint.



13
14
15
# File 'lib/guidestar.rb', line 13

def default_endpoint
  @default_endpoint
end

.passwordObject

Returns the value of attribute password.



11
12
13
# File 'lib/guidestar.rb', line 11

def password
  @password
end

.proxyObject

Returns the value of attribute proxy.



12
13
14
# File 'lib/guidestar.rb', line 12

def proxy
  @proxy
end

.ssl_optionsObject

Returns the value of attribute ssl_options.



14
15
16
# File 'lib/guidestar.rb', line 14

def ssl_options
  @ssl_options
end

.usernameObject

Returns the value of attribute username.



10
11
12
# File 'lib/guidestar.rb', line 10

def username
  @username
end

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Guidestar)

    the object that the method was called on



16
17
18
19
# File 'lib/guidestar.rb', line 16

def configure
  yield self
  true
end

.method_missing(method_name, *args) ⇒ Object



21
22
23
# File 'lib/guidestar.rb', line 21

def method_missing(method_name, *args)
  Guidestar::Chain.new.send(method_name.to_sym, *args)
end