Module: Aliyun::Common::Struct
- Defined in:
- lib/aliyun/common/struct.rb
Overview
Common structs used. It provides a ‘attrs’ helper method for subclass to define its attributes. ‘attrs’ is based on attr_reader and provide additional functionalities for classes that inherits Struct::Base :
-
the constuctor is provided to accept options and set the corresponding attibute automatically
-
the #to_s method is rewrite to concatenate the defined attributes keys and values
Defined Under Namespace
Classes: Base