class Awspec::Generator::Doc::Type::AccountAttributeBase

Public Class Methods

new() click to toggle source
# File lib/awspec/generator/doc/type/account_attribute_base.rb, line 7
def initialize
  Awspec::Stub.load 'account'
  @type_name = type_name
end

Public Instance Methods

doc_template() click to toggle source
# File lib/awspec/generator/doc/type/account_attribute_base.rb, line 12
        def doc_template
          <<-'EOF'
## <a name="<%= @type_name.gsub(/ /, '_').underscore %>"><%= @type_name.gsub(/ /, '_').underscore %></a>

<%= @type_name %> account attributes.
<%- if @descriptions.include?('first') -%><%= @descriptions['first'] %><%- end -%>
<% @matchers.each do |matcher| %>
### <%= matcher %>
<%- if @descriptions.include?(matcher) -%><%= @descriptions[matcher] %><%- end -%>
<% end %>
<%- unless its.empty? -%>### <%= its.join(', ') %><%- end -%>
<%- if @descriptions.include?('advanced') -%>

### :unlock: Advanced use
<%= @descriptions['advanced'] %><%- end -%>

EOF
        end