Class: RequestGenerator

Inherits:
Object
  • Object
show all
Defined in:
app/generators/request_generator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(game) ⇒ RequestGenerator

Returns a new instance of RequestGenerator


4
5
6
# File 'app/generators/request_generator.rb', line 4

def initialize(game)
  @game = game
end

Instance Attribute Details

#gameObject (readonly)

Returns the value of attribute game


2
3
4
# File 'app/generators/request_generator.rb', line 2

def game
  @game
end

Instance Method Details

#generateObject


8
9
10
# File 'app/generators/request_generator.rb', line 8

def generate
  "#{url}#{options}"
end