Class: ActiveRecordToSimpledb::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record_to_simpledb.rb

Class Method Summary collapse

Class Method Details

.create(domain, attr) ⇒ Object

Public: This method create simpledb records

hash - model attributes



60
61
62
63
# File 'lib/active_record_to_simpledb.rb', line 60

def self.create(domain,attr)
  ActiveRecordToSimpledb.create_domain(domain)
  ActiveRecordToSimpledb.aws_connect.put_attributes(domain, attr["id"], attr)
end