Class: Redminer::Base
- Inherits:
-
Object
- Object
- Redminer::Base
- Defined in:
- lib/redminer/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#server ⇒ Object
Returns the value of attribute server.
Instance Method Summary collapse
- #all=(hash) ⇒ Object
-
#initialize(host, access_key, options = {}) ⇒ Base
constructor
A new instance of Base.
- #method_missing(m, *args, &blk) ⇒ Object
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *args, &blk) ⇒ Object
18 19 20 |
# File 'lib/redminer/base.rb', line 18 def method_missing(m, *args, &blk) @server.send(m, *args, &blk) end |
Instance Attribute Details
#server ⇒ Object
Returns the value of attribute server.
3 4 5 |
# File 'lib/redminer/base.rb', line 3 def server @server end |
Instance Method Details
#all=(hash) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/redminer/base.rb', line 9 def all=(hash) hash.each_pair { |k, v| if respond_to?("#{k}=") send("#{k}=", v) end } self end |