Skip to content

Commit

Permalink
Added Phish Albums and Musicians (#2024)
Browse files Browse the repository at this point in the history
* added phish players and albums

* updated phish readme

* added new tests

* added new methods with documentation

* updated phish yml to preferred formatting

* updated phish doc

* new phish albums and musicians

* fixed comment for phish musician

* updated version to next
  • Loading branch information
zfine416 authored May 31, 2020
1 parent e9f6c4f commit 2e46998
Show file tree
Hide file tree
Showing 4 changed files with 431 additions and 2 deletions.
4 changes: 4 additions & 0 deletions doc/music/phish.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Faker::Music::Phish

```ruby
Faker::Music::Phish.album #=> "Fuego"

Faker::Music::Phish.musician #=> "Trey Anastasio"

Faker::Music::Phish.song #=> "Tweezer"
```
28 changes: 27 additions & 1 deletion lib/faker/music/phish.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,32 @@ module Faker
class Music
class Phish < Base
class << self
##
# Produces the name of a album by Phish.
#
# @return [String]
#
# @example
# Faker::Music::Phish.album #=> "Fuego"
#
# @faker.version next
def album
fetch('phish.albums')
end

##
# Produces the name of a musician in Phish.
#
# @return [String]
#
# @example
# Faker::Music::Phish.musician #=> "Trey Anastasio"
#
# @faker.version next
def musician
fetch('phish.musicians')
end

##
# Produces the name of a song by Phish.
#
Expand All @@ -14,7 +40,7 @@ class << self
#
# @faker.version 1.9.2
def song
fetch('phish.song')
fetch('phish.songs')
end
end
end
Expand Down
Loading

0 comments on commit 2e46998

Please sign in to comment.