Class: QcloudCos::List
- Inherits:
-
Object
- Object
- QcloudCos::List
- Extended by:
- Forwardable
- Includes:
- Enumerable
- Defined in:
- lib/qcloud_cos/model/list.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#dircount ⇒ Object
readonly
Returns the value of attribute dircount.
-
#filecount ⇒ Object
readonly
Returns the value of attribute filecount.
-
#has_more ⇒ Object
readonly
Returns the value of attribute has_more.
Instance Method Summary collapse
-
#initialize(result) ⇒ List
constructor
自动将 Hash 构建成对象.
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
#context ⇒ Object (readonly)
Returns the value of attribute context.
10 11 12 |
# File 'lib/qcloud_cos/model/list.rb', line 10 def context @context end |
#dircount ⇒ Object (readonly)
Returns the value of attribute dircount.
10 11 12 |
# File 'lib/qcloud_cos/model/list.rb', line 10 def dircount @dircount end |
#filecount ⇒ Object (readonly)
Returns the value of attribute filecount.
10 11 12 |
# File 'lib/qcloud_cos/model/list.rb', line 10 def filecount @filecount end |
#has_more ⇒ Object (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 |