module AliyunSDK::Common::Struct

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 :

@example

class X < Struct::Base
  attrs :foo, :bar
end

x.new(:foo => 'hello', :bar => 'world')
x.foo # == "hello"
x.bar # == "world"
x.to_s # == "foo: hello, bar: world"