Sha256: dfac2d45dab9101e2d56fd1a3ad17b2cf840f588b99e394aeb8ab9bb4940ab25

Contents?: true

Size: 182 Bytes

Versions: 31

Compression:

Stored size: 182 Bytes

Contents

class PlayerBLL

  def create_new_player(config)
    name = config['initial_player']['name']

    player = Player.new(name: name, user: User.new)
    player.save
    player
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
rubypitaya-2.5.0 ./lib/rubypitaya/app-template/app/bll/player_bll.rb
rubypitaya-2.4.4 ./lib/rubypitaya/app-template/app/bll/player_bll.rb
rubypitaya-2.4.3 ./lib/rubypitaya/app-template/app/bll/player_bll.rb
rubypitaya-2.4.2 ./lib/rubypitaya/app-template/app/bll/player_bll.rb
rubypitaya-2.4.1 ./lib/rubypitaya/app-template/app/bll/player_bll.rb
rubypitaya-2.4.0 ./lib/rubypitaya/app-template/app/bll/player_bll.rb
rubypitaya-2.3.2 ./lib/rubypitaya/app-template/app/bll/player_bll.rb
rubypitaya-2.3.1 ./lib/rubypitaya/app-template/app/bll/player_bll.rb
rubypitaya-2.3.0 ./lib/rubypitaya/app-template/app/bll/player_bll.rb
rubypitaya-2.2.2 ./lib/rubypitaya/app-template/app/bll/player_bll.rb
rubypitaya-2.2.1 ./lib/rubypitaya/app-template/app/bll/player_bll.rb
rubypitaya-2.2.0 ./lib/rubypitaya/app-template/app/bll/player_bll.rb
rubypitaya-2.1.0 ./lib/rubypitaya/app-template/app/bll/player_bll.rb
rubypitaya-2.0.0 ./lib/rubypitaya/app-template/app/bll/player_bll.rb
rubypitaya-1.8.2 ./lib/rubypitaya/app-template/app/bll/player_bll.rb
rubypitaya-1.8.1 ./lib/rubypitaya/app-template/app/bll/player_bll.rb
rubypitaya-1.8.0 ./lib/rubypitaya/app-template/app/bll/player_bll.rb
rubypitaya-1.7.2 ./lib/rubypitaya/app-template/app/bll/player_bll.rb
rubypitaya-1.7.1 ./lib/rubypitaya/app-template/app/bll/player_bll.rb
rubypitaya-1.7.0 ./lib/rubypitaya/app-template/app/bll/player_bll.rb