Topic: create model/migration based on an object from another gem/library

I am using the fog.io gem library to generate server and I want to have a model that stores whatever server gets created. To give you an idea here's the object that gets generated <code>>> server = connection.servers.create 

>> server = connection.servers.create
  <Fog::Compute::AWS::Server
    id="i-0984916f",
    ami_launch_index=0,
    availability_zone="us-east-1c",
    block_device_mapping=[],
    client_token=nil,
    dns_name=nil,
    groups=["default"],
    flavor_id="t1.micro",
    image_id="ami-3202f25b",
    kernel_id="aki-427d952b",
    key_name=nil,
    created_at=Wed May 30 00:50:41 UTC 2012,
    monitoring=false,
    placement_group=nil,
    platform=nil,
    product_codes=[],
    private_dns_name=nil,
    private_ip_address=nil,
    public_ip_address=nil,
    ramdisk_id=nil,
    reason=nil,
    root_device_name=nil,
    root_device_type="ebs",
    security_group_ids=nil,
    state="pending",
    state_reason=nil,
    subnet_id=nil,
    tenancy="default",
    tags=nil,
    user_data=nil,
    vpc_id=nil
  >



How can i create a model/migration that stores the Fog::Compute::AWS::Server object?

Thanks in advance

Last edited by pringleso (2012-05-29 22:34:26)