Class: Yao::Resources::Keypair

Inherits:
Base
  • Object
show all
Defined in:
lib/yao/resources/keypair.rb

Instance Attribute Summary

Attributes included from RestfullyAccessible

#api_version, #service

Class Method Summary collapse

Methods inherited from Base

#[], #[]=, #created, friendly_attributes, #id, #initialize, map_attribute_to_attribute, map_attribute_to_resource, map_attribute_to_resources, #updated

Methods included from RestfullyAccessible

#admin=, #as_member, #client, #create, #destroy, extended, #get, #list, #list_detail, #resources_path, #resources_path=, #return_single_on_querying=, #update, #with_resources_path

Constructor Details

This class inherits a constructor from Yao::Resources::Base

Class Method Details

.list(query = {}) ⇒ Object



9
10
11
12
13
# File 'lib/yao/resources/keypair.rb', line 9

def self.list(query={})
  return_resources(
    resources_from_json(GET(resources_name, query).body).map{|r| resource_from_json(r)}
  )
end