Class: Faker::Music::Opera

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/music/opera.rb

Constant Summary

Constants inherited from Base

Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters

Class Method Summary collapse

Methods inherited from Base

bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, generate, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, translate, unique, with_locale

Class Method Details

.beethovenString

Produces the title of an opera by Ludwig van Beethoven.

Examples:

Faker::Music::Opera.beethoven #=> "Fidelio"

Returns:



149
150
151
# File 'lib/faker/music/opera.rb', line 149

def beethoven
  fetch('opera.german.by_ludwig_van_beethoven')
end

.belliniString

Produces the title of an opera by Vincenzo Bellini.

Examples:

Faker::Music::Opera.bellini #=> "Norma"

Returns:



56
57
58
# File 'lib/faker/music/opera.rb', line 56

def bellini
  fetch('opera.italian.by_vincenzo_bellini')
end

.bergString

Produces the title of an opera by Alban Berg.

Examples:

Faker::Music::Opera.berg #=> "Wozzeck"

Returns:



227
228
229
# File 'lib/faker/music/opera.rb', line 227

def berg
  fetch('opera.german.by_alban_berg')
end

.berliozString

Produces the title of an opera by Hector Berlioz.

Examples:

Faker::Music::Opera.berlioz #=> "Les Troyens"

Returns:



253
254
255
# File 'lib/faker/music/opera.rb', line 253

def berlioz
  fetch('opera.french.by_hector_berlioz')
end

.bizetString

Produces the title of an opera by Georges Bizet.

Examples:

Faker::Music::Opera.bizet #=> "Carmen"

Returns:



266
267
268
# File 'lib/faker/music/opera.rb', line 266

def bizet
  fetch('opera.french.by_georges_bizet')
end

.donizettiString

Produces the title of an opera by Gaetano Donizetti.

Examples:

Faker::Music::Opera.donizetti #=> "Lucia di Lammermoor"

Returns:



43
44
45
# File 'lib/faker/music/opera.rb', line 43

def donizetti
  fetch('opera.italian.by_gaetano_donizetti')
end

.gluckString

Produces the title of an opera by Christoph Willibald Gluck.

Examples:

Faker::Music::Opera.gluck #=> "Orfeo ed Euridice"

Returns:



109
110
111
112
# File 'lib/faker/music/opera.rb', line 109

def gluck
  fetch('opera.italian.by_christoph_willibald_gluck') +
    fetch('opera.french.by_christoph_willibald_gluck')
end

.gluck_frenchString

Produces the title of a French opera by Christoph Willibald Gluck.

Examples:

Faker::Music::Opera.gluck_fr #=> "Orphee et Euridice"

Returns:



136
137
138
# File 'lib/faker/music/opera.rb', line 136

def gluck_french
  fetch('opera.french.by_christoph_willibald_gluck')
end

.gluck_italianString

Produces the title of an Italian opera by Christoph Willibald Gluck.

Examples:

Faker::Music::Opera.gluck_it #=> "Orfeo ed Euridice"

Returns:



123
124
125
# File 'lib/faker/music/opera.rb', line 123

def gluck_italian
  fetch('opera.italian.by_christoph_willibald_gluck')
end

.gounodString

Produces the title of an opera by Charles Gounod.

Examples:

Faker::Music::Opera.gounod #=> "Faust"

Returns:



279
280
281
# File 'lib/faker/music/opera.rb', line 279

def gounod
  fetch('opera.french.by_charles_gounod')
end

.mozartString

Produces the title of an opera by Wolfgang Amadeus Mozart.

Examples:

Faker::Music::Opera.mozart #=> "Die Zauberfloete"

Returns:



69
70
71
72
# File 'lib/faker/music/opera.rb', line 69

def mozart
  fetch('opera.italian.by_wolfgang_amadeus_mozart') +
    fetch('opera.german.by_wolfgang_amadeus_mozart')
end

.mozart_germanString

Produces the title of a German opera by Wolfgang Amadeus Mozart.

Examples:

Faker::Music::Opera.mozart_ger #=> "Die Zauberfloete"

Returns:



96
97
98
# File 'lib/faker/music/opera.rb', line 96

def mozart_german
  fetch('opera.german.by_wolfgang_amadeus_mozart')
end

.mozart_italianString

Produces the title of an Italian opera by Wolfgang Amadeus Mozart.

Examples:

Faker::Music::Opera.mozart_it #=> "Cosi fan tutte"

Returns:



83
84
85
# File 'lib/faker/music/opera.rb', line 83

def mozart_italian
  fetch('opera.italian.by_wolfgang_amadeus_mozart')
end

.ravelString

Produces the title of an opera by Maurice Ravel.

Examples:

Faker::Music::Opera.ravel #=> "L'enfant et les sortileges"

Returns:



240
241
242
# File 'lib/faker/music/opera.rb', line 240

def ravel
  fetch('opera.french.by_maurice_ravel')
end

.rossiniString

Produces the title of an opera by Gioacchino Rossini.

Examples:

Faker::Music::Opera.rossini #=> "Il Barbiere di Siviglia"

Returns:



30
31
32
# File 'lib/faker/music/opera.rb', line 30

def rossini
  fetch('opera.italian.by_gioacchino_rossini')
end

.saint_saensString

Produces the title of an opera by Camille Saint-Saens.

Examples:

Faker::Music::Opera.saint_saens #=> "Samson and Delilah"

Returns:



292
293
294
# File 'lib/faker/music/opera.rb', line 292

def saint_saens
  fetch('opera.french.by_camille_saint_saens')
end

.schubertString

Produces the title of an opera by Franz Schubert.

Examples:

Faker::Music::Opera.schubert #=> "Alfonso und Estrella"

Returns:



214
215
216
# File 'lib/faker/music/opera.rb', line 214

def schubert
  fetch('opera.german.by_franz_schubert')
end

.schumannString

Produces the title of an opera by Robert Schumann.

Examples:

Faker::Music::Opera.schumann #=> "Genoveva"

Returns:



201
202
203
# File 'lib/faker/music/opera.rb', line 201

def schumann
  fetch('opera.german.by_robert_schumann')
end

.straussString

Produces the title of an opera by Richard Strauss.

Examples:

Faker::Music::Opera.strauss #=> "Elektra"

Returns:



175
176
177
# File 'lib/faker/music/opera.rb', line 175

def strauss
  fetch('opera.german.by_richard_strauss')
end

.verdiString

Produces the title of an opera by Giuseppe Verdi.

Examples:

Faker::Music::Opera.verdi #=> "Il Trovatore"

Returns:



17
18
19
# File 'lib/faker/music/opera.rb', line 17

def verdi
  fetch('opera.italian.by_giuseppe_verdi')
end

.wagnerString

Produces the title of an opera by Richard Wagner.

Examples:

Faker::Music::Opera.wagner #=> "Tristan und Isolde"

Returns:



188
189
190
# File 'lib/faker/music/opera.rb', line 188

def wagner
  fetch('opera.german.by_richard_wagner')
end

.weberString

Produces the title of an opera by Carl Maria von Weber.

Examples:

Faker::Music::Opera.weber #=> "Der Freischuetz"

Returns:



162
163
164
# File 'lib/faker/music/opera.rb', line 162

def weber
  fetch('opera.german.by_carl_maria_von_weber')
end