Class: Aliyun::Odps::Client

Inherits:
ServiceObject show all
Extended by:
Modelable
Defined in:
lib/aliyun/odps/client.rb

Instance Attribute Summary collapse

Attributes inherited from ServiceObject

#master

Instance Method Summary collapse

Methods included from Modelable

has_many

Methods inherited from ServiceObject

build, #client, #project, service_pool

Constructor Details

#initialize(config = Aliyun::Odps.config) ⇒ Response

Initialize a object

Parameters:

  • access_key (String)

    access_key obtained from aliyun

  • secret_key (String)

    secret_key obtained from aliyun

  • opts (Hash)

    a customizable set of options



23
24
25
# File 'lib/aliyun/odps/client.rb', line 23

def initialize(config = Aliyun::Odps.config)
  @config = config
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



14
15
16
# File 'lib/aliyun/odps/client.rb', line 14

def config
  @config
end

Instance Method Details

#projectsProjects

Returns:



12
# File 'lib/aliyun/odps/client.rb', line 12

has_many :projects