class AWS::SimpleWorkflow::Resource

def self.attribute name, options = {}, &block

Other tags:
    Private: -
def self.attribute name, options = {}, &block
  # the simple workflow attributes are all given as 'lowerCamelCase'
  # this converts the :snake_case name to the correct format
  unless options[:as]
    parts = []
    name.to_s.split(/_/).each_with_index do |part,n|
      parts << (n == 0 ? part : part.capitalize)
    end
    options[:as] = parts.join.to_sym
  end
  if options[:duration]
    super(name, options) do
      translates_output do |v| 
        v.to_s =~ /^\d+$/ ? v.to_i : v.downcase.to_sym
      end
    end
  else
    super(name, options, &block)
  end
end