Module: Limbo

Defined in:
lib/limbo.rb,
lib/limbo/client.rb,
lib/limbo/version.rb,
lib/limbo/rails/data.rb,
lib/limbo/rails/request.rb,
lib/limbo/rails/parameter_filter.rb

Defined Under Namespace

Modules: Rails Classes: Client

Constant Summary collapse

VERSION =
"0.0.5"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.environmentObject

Returns the value of attribute environment.



8
9
10
# File 'lib/limbo.rb', line 8

def environment
  @environment
end

.keyObject

Returns the value of attribute key.



8
9
10
# File 'lib/limbo.rb', line 8

def key
  @key
end

.serviceObject

Returns the value of attribute service.



8
9
10
# File 'lib/limbo.rb', line 8

def service
  @service
end

.service_nameObject

Returns the value of attribute service_name.



8
9
10
# File 'lib/limbo.rb', line 8

def service_name
  @service_name
end

.uriObject

Returns the value of attribute uri.



8
9
10
# File 'lib/limbo.rb', line 8

def uri
  @uri
end

Class Method Details

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

Yields:

  • (_self)

Yield Parameters:

  • _self (Limbo)

    the object that the method was called on



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

def configure
  yield self
  check_required_keys
end

.post(hash) ⇒ Object



20
21
22
# File 'lib/limbo.rb', line 20

def post(hash)
  Client.post(default_hash.merge(hash))
end

.rails_post(hash) ⇒ Object



15
16
17
18
# File 'lib/limbo.rb', line 15

def rails_post(hash)
  transformed_hash = Rails::Data.new(hash).transform
  post(transformed_hash)
end