class AWS::DynamoDB::Resource

Public Class Methods

attribute(name, options = {}) click to toggle source

@private

# File lib/aws/dynamo_db/resource.rb, line 19
def self.attribute name, options = {}

  # DynamoDB attributes are all returned in UpperCamelCase, this
  # converts the :snake_case name into the correct format.
  unless options[:as]
    options[:as] = name.to_s.split(%r_/).map(&:capitalize).join
  end

  super(name, options)

end