class AlbionApi::UserSearch
this is the class used to search for users, namely to get their API ID
Attributes
character_name[RW]
Public Class Methods
new(character_name)
click to toggle source
# File lib/albion-api/user_search.rb, line 4 def initialize(character_name) @character_name = character_name end
Public Instance Methods
find()
click to toggle source
# File lib/albion-api/user_search.rb, line 8 def find response = self.class.get("/search?q=#{character_name}") Response.new(response) end