Class: Yao::Resources::User

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

Instance Attribute Summary

Attributes included from RestfullyAccessible

#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=, #api_version, #api_version=, #as_member, #client, #create, #destroy, extended, #find_by_name, #get, #get!, #list, #resources_path, #resources_path=, #return_single_on_querying, #return_single_on_querying=, #update

Constructor Details

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

Class Method Details

.find_by_name(name, query = {}) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/yao/resources/user.rb', line 13

def find_by_name(name, query={})
  if api_verion_v2?
    [super]
  else
    super
  end
end

.return_single_on_queryingObject



21
22
23
# File 'lib/yao/resources/user.rb', line 21

def return_single_on_querying
  api_verion_v2?
end