Class: EhbrsRubyUtils::Bga::Game

Inherits:
Object
  • Object
show all
Defined in:
lib/ehbrs_ruby_utils/bga/game.rb,
lib/ehbrs_ruby_utils/bga/game/image.rb

Defined Under Namespace

Classes: Image

Instance Method Summary collapse

Instance Method Details

#display_image(nth) ⇒ Addressable::URI

Parameters:

  • nth (Integer)

Returns:

  • (Addressable::URI)


33
34
35
# File 'lib/ehbrs_ruby_utils/bga/game.rb', line 33

def display_image(nth)
  image("/display/#{nth}.jpg")
end

#image(suffix) ⇒ EhbrsRubyUtils::Bga::Game::Image

Parameters:

  • suffix (String)

Returns:



12
13
14
# File 'lib/ehbrs_ruby_utils/bga/game.rb', line 12

def image(suffix)
  ::EhbrsRubyUtils::Bga::Game::Image.new(self, suffix)
end