Class: IGE_ISB_API::GameInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/ige_isb_api/games.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mode = :fun) ⇒ GameInfo

Returns a new instance of GameInfo.

Raises:

  • (ArgumentError)


54
55
56
57
# File 'lib/ige_isb_api/games.rb', line 54

def initialize(mode = :fun)
  raise ArgumentError, "Invalid mode #{mode}, should be :fun or :real" unless mode == :fun || mode == :real
  @mode = mode
end

Instance Attribute Details

#custom_loaderObject

:fun or :real



50
51
52
# File 'lib/ige_isb_api/games.rb', line 50

def custom_loader
  @custom_loader
end

#hostObject

:fun or :real



50
51
52
# File 'lib/ige_isb_api/games.rb', line 50

def host
  @host
end

#modeObject

:fun or :real



50
51
52
# File 'lib/ige_isb_api/games.rb', line 50

def mode
  @mode
end

#preloaderObject

:fun or :real



50
51
52
# File 'lib/ige_isb_api/games.rb', line 50

def preloader
  @preloader
end

#swf_revisionObject

:fun or :real



50
51
52
# File 'lib/ige_isb_api/games.rb', line 50

def swf_revision
  @swf_revision
end

#urlObject

:fun or :real



50
51
52
# File 'lib/ige_isb_api/games.rb', line 50

def url
  @url
end

#use_custom_loaderObject

:fun or :real



50
51
52
# File 'lib/ige_isb_api/games.rb', line 50

def use_custom_loader
  @use_custom_loader
end

Instance Method Details

#use_custom_loader?Boolean

Returns:

  • (Boolean)


59
60
61
62
# File 'lib/ige_isb_api/games.rb', line 59

def use_custom_loader?
  return @use_custom_loader if (defined? @use_custom_loader && !@use_custom_loader.nil?)
  return false
end