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, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, translate, unique, with_locale

Class Method Details

.belliniString

Produces the title of an opera by Vincenzo Bellini.

Examples:

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

Returns:

  • (String)

Available since:

  • 1.9.4


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

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

.donizettiString

Produces the title of an opera by Gaetano Donizetti.

Examples:

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

Returns:

  • (String)

Available since:

  • 1.9.4


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

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

.rossiniString

Produces the title of an opera by Gioacchino Rossini.

Examples:

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

Returns:

  • (String)

Available since:

  • 1.9.4


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

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

.verdiString

Produces the title of an opera by Giuseppe Verdi.

Examples:

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

Returns:

  • (String)

Available since:

  • 1.9.4


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

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