Class: ActiveRecordToSimpledb::Client
- Inherits:
-
Object
- Object
- ActiveRecordToSimpledb::Client
- Defined in:
- lib/active_record_to_simpledb.rb
Class Method Summary collapse
-
.create(domain, attr) ⇒ Object
Public: This method create simpledb records.
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 |