Class: CDD::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/cdd/base.rb

Direct Known Subclasses

DataSet, Export, Project, Search, Vault

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options={})
  self.client = client
  options.each do |k,v|
    self.send("#{k}=",v)
  end
end

Instance Attribute Details

#clientObject

Returns the value of attribute client.



4
5
6
# File 'lib/cdd/base.rb', line 4

def client
  @client
end

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/cdd/base.rb', line 3

def id
  @id
end