Class: MarvelCharactersCliGemEthel::Characters
- Inherits:
-
Object
- Object
- MarvelCharactersCliGemEthel::Characters
- Defined in:
- lib/marvel_characters_cli_gem_ethel/characters.rb
Constant Summary collapse
- @@all =
[]
Instance Attribute Summary collapse
-
#character_type ⇒ Object
Returns the value of attribute character_type.
-
#list_of_powers ⇒ Object
Returns the value of attribute list_of_powers.
-
#number ⇒ Object
Returns the value of attribute number.
-
#number_of_powers ⇒ Object
Returns the value of attribute number_of_powers.
-
#real_name ⇒ Object
Returns the value of attribute real_name.
-
#super_name ⇒ Object
Returns the value of attribute super_name.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Characters
constructor
A new instance of Characters.
Constructor Details
#initialize ⇒ Characters
Returns a new instance of Characters.
7 8 9 10 |
# File 'lib/marvel_characters_cli_gem_ethel/characters.rb', line 7 def initialize @@all << self # binding.pry end |
Instance Attribute Details
#character_type ⇒ Object
Returns the value of attribute character_type.
3 4 5 |
# File 'lib/marvel_characters_cli_gem_ethel/characters.rb', line 3 def character_type @character_type end |
#list_of_powers ⇒ Object
Returns the value of attribute list_of_powers.
3 4 5 |
# File 'lib/marvel_characters_cli_gem_ethel/characters.rb', line 3 def list_of_powers @list_of_powers end |
#number ⇒ Object
Returns the value of attribute number.
3 4 5 |
# File 'lib/marvel_characters_cli_gem_ethel/characters.rb', line 3 def number @number end |
#number_of_powers ⇒ Object
Returns the value of attribute number_of_powers.
3 4 5 |
# File 'lib/marvel_characters_cli_gem_ethel/characters.rb', line 3 def number_of_powers @number_of_powers end |
#real_name ⇒ Object
Returns the value of attribute real_name.
3 4 5 |
# File 'lib/marvel_characters_cli_gem_ethel/characters.rb', line 3 def real_name @real_name end |
#super_name ⇒ Object
Returns the value of attribute super_name.
3 4 5 |
# File 'lib/marvel_characters_cli_gem_ethel/characters.rb', line 3 def super_name @super_name end |
#url ⇒ Object
Returns the value of attribute url.
3 4 5 |
# File 'lib/marvel_characters_cli_gem_ethel/characters.rb', line 3 def url @url end |
Class Method Details
.all ⇒ Object
12 13 14 |
# File 'lib/marvel_characters_cli_gem_ethel/characters.rb', line 12 def self.all @@all end |