class Esi::Calls::Info
Attributes
call[R]
name[R]
Public Class Methods
new(name)
click to toggle source
# File lib/esi/calls/info.rb, line 9 def initialize(name) @name = name.to_sym @call = Calls.const_get(name.to_s.camelize) end
Public Instance Methods
character?()
click to toggle source
# File lib/esi/calls/info.rb, line 18 def character? name.to_s.starts_with?('character') end
corporation?()
click to toggle source
# File lib/esi/calls/info.rb, line 22 def corporation? name.to_s.starts_with?('corporat') end
to_s()
click to toggle source
# File lib/esi/calls/info.rb, line 14 def to_s @name.to_s end