Module: Congress
- Defined in:
- lib/congress.rb,
lib/congress/client.rb,
lib/congress/request.rb,
lib/congress/version.rb,
lib/congress/connection.rb
Defined Under Namespace
Modules: Connection, Request Classes: Client
Constant Summary collapse
- VERSION =
"0.1.1"
Class Attribute Summary collapse
-
.key ⇒ Object
Returns the value of attribute key.
Class Method Summary collapse
- .configure {|_self| ... } ⇒ Object
-
.method_missing(method, *args, &block) ⇒ Object
Delegate to Congress::Client.
-
.new ⇒ Congress::Client
Alias for Congress::Client.new.
- .respond_to?(method, include_private = false) ⇒ Boolean
Class Attribute Details
.key ⇒ Object
Returns the value of attribute key.
5 6 7 |
# File 'lib/congress.rb', line 5 def key @key end |
Class Method Details
.configure {|_self| ... } ⇒ Object
6 7 8 |
# File 'lib/congress.rb', line 6 def configure yield self end |
.method_missing(method, *args, &block) ⇒ Object
Delegate to Congress::Client
18 19 20 21 |
# File 'lib/congress.rb', line 18 def method_missing(method, *args, &block) return super unless new.respond_to?(method) new.send(method, *args, &block) end |
.new ⇒ Congress::Client
Alias for Congress::Client.new
13 14 15 |
# File 'lib/congress.rb', line 13 def new Congress::Client.new end |
.respond_to?(method, include_private = false) ⇒ Boolean
23 24 25 |
# File 'lib/congress.rb', line 23 def respond_to?(method, include_private=false) new.respond_to?(method, include_private) || super(method, include_private) end |