Class: IGE_ISB_API::GameInfo
- Inherits:
-
Object
- Object
- IGE_ISB_API::GameInfo
- Defined in:
- lib/ige_isb_api/games.rb
Instance Attribute Summary collapse
-
#custom_loader ⇒ Object
:fun or :real.
-
#host ⇒ Object
:fun or :real.
-
#mode ⇒ Object
:fun or :real.
-
#preloader ⇒ Object
:fun or :real.
-
#swf_revision ⇒ Object
:fun or :real.
-
#url ⇒ Object
:fun or :real.
-
#use_custom_loader ⇒ Object
:fun or :real.
Instance Method Summary collapse
-
#initialize(mode = :fun) ⇒ GameInfo
constructor
A new instance of GameInfo.
- #use_custom_loader? ⇒ Boolean
Constructor Details
#initialize(mode = :fun) ⇒ GameInfo
Returns a new instance of GameInfo.
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_loader ⇒ Object
:fun or :real
50 51 52 |
# File 'lib/ige_isb_api/games.rb', line 50 def custom_loader @custom_loader end |
#host ⇒ Object
:fun or :real
50 51 52 |
# File 'lib/ige_isb_api/games.rb', line 50 def host @host end |
#mode ⇒ Object
:fun or :real
50 51 52 |
# File 'lib/ige_isb_api/games.rb', line 50 def mode @mode end |
#preloader ⇒ Object
:fun or :real
50 51 52 |
# File 'lib/ige_isb_api/games.rb', line 50 def preloader @preloader end |
#swf_revision ⇒ Object
:fun or :real
50 51 52 |
# File 'lib/ige_isb_api/games.rb', line 50 def swf_revision @swf_revision end |
#url ⇒ Object
:fun or :real
50 51 52 |
# File 'lib/ige_isb_api/games.rb', line 50 def url @url end |
#use_custom_loader ⇒ Object
: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
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 |