```ruby
module Yao::Resources
  class Keypair < Base
    friendly_attributes :name, :public_key, :fingerprint

    self.service        = "compute"
    self.resource_name  = "os-keypair"
    self.resources_name = "os-keypairs"

    def self.list
      super.map{|r| r[resource_name_in_json] }
    end
  end
end
```

Fix Yao::Keypair.list would not return instances themselves
user
```ruby
module Yao::Resources
  class Keypair < Base
    friendly_attributes :name, :public_key, :fingerprint

    self.service        = "compute"
    self.resource_name  = "os-keypair"
    self.resources_name = "os-keypairs"

    def self.list(query={})
      return_resources(GET(resources_name, query).body[resources_name_in_json].map{|r| r[resource_name_in_json] })
    end
  end
end
```
assistant