Class: Smite::God
Instance Attribute Summary
Attributes inherited from Object
#data
Instance Method Summary
collapse
Methods inherited from Object
#attributes, #method_missing
Constructor Details
#initialize(data) ⇒ God
Returns a new instance of God.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class Smite::Object
Instance Method Details
29
30
31
|
# File 'lib/smite/god.rb', line 29
def inspect
"#<Smite::God #{id} '#{name}'>"
end
|
#magic? ⇒ Boolean
25
26
27
|
# File 'lib/smite/god.rb', line 25
def magic?
!physical?
end
|
#melee? ⇒ Boolean
17
18
19
|
# File 'lib/smite/god.rb', line 17
def melee?
!ranged?
end
|
#on_free_rotation? ⇒ Boolean
9
10
11
|
# File 'lib/smite/god.rb', line 9
def on_free_rotation?
!on_free_rotation.empty?
end
|
#physical? ⇒ Boolean
21
22
23
|
# File 'lib/smite/god.rb', line 21
def physical?
!!(type =~ /Physical/i)
end
|
#ranged? ⇒ Boolean
13
14
15
|
# File 'lib/smite/god.rb', line 13
def ranged?
!!(type =~ /Ranged/i)
end
|