class AWS::Core::Resource::AttributeProvider
def provides *attr_names
(**options)
-
:get_as
(Symbol
) -- Defaults to the method named -
:value_wrapped
(Boolean
) -- If true, then
Parameters:
-
options
(Hash
) -- -
attr_names
(Symbol
) -- A list of attributes provided
Overloads:
-
provides(*attr_names, options = {})
def provides *attr_names options = attr_names.last.is_a?(Hash) ? attr_names.pop : {} attr_names.each do |attr_name| attr = @klass.attributes[attr_name] attr.request_types.push(*request_types) @provides[attr_name] = options end end