Class: QcloudCos::List

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Enumerable
Defined in:
lib/qcloud_cos/model/list.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(result) ⇒ List

自动将 Hash 构建成对象



14
15
16
17
18
19
20
# File 'lib/qcloud_cos/model/list.rb', line 14

def initialize(result)
  @context = result['context']
  @dircount = result['dircount']
  @filecount = result['filecount']
  @has_more = result['has_more']
  @objects = build_objects(result['infos'])
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



10
11
12
# File 'lib/qcloud_cos/model/list.rb', line 10

def context
  @context
end

#dircountObject (readonly)

Returns the value of attribute dircount.



10
11
12
# File 'lib/qcloud_cos/model/list.rb', line 10

def dircount
  @dircount
end

#filecountObject (readonly)

Returns the value of attribute filecount.



10
11
12
# File 'lib/qcloud_cos/model/list.rb', line 10

def filecount
  @filecount
end

#has_moreObject (readonly)

Returns the value of attribute has_more.



10
11
12
# File 'lib/qcloud_cos/model/list.rb', line 10

def has_more
  @has_more
end