Class: CDD::Base
- Inherits:
-
Object
- Object
- CDD::Base
- Defined in:
- lib/cdd/base.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(client, options = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(client, options = {}) ⇒ Base
Returns a new instance of Base.
6 7 8 9 10 11 |
# File 'lib/cdd/base.rb', line 6 def initialize(client, ={}) self.client = client .each do |k,v| self.send("#{k}=",v) end end |
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client.
4 5 6 |
# File 'lib/cdd/base.rb', line 4 def client @client end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/cdd/base.rb', line 3 def id @id end |