Class: Smite::Friend

Inherits:
Object show all
Defined in:
lib/smite/friend.rb

Instance Attribute Summary

Attributes inherited from Object

#data

Instance Method Summary collapse

Methods inherited from Object

#attributes, #initialize, #method_missing

Constructor Details

This class inherits a constructor from Smite::Object

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Smite::Object

Instance Method Details

#inspectObject



7
8
9
# File 'lib/smite/friend.rb', line 7

def inspect
  "#<Smite::Friend '#{name}'>"
end

#to_playerObject



3
4
5
# File 'lib/smite/friend.rb', line 3

def to_player
  Smite::Game.player(name)
end