Class: MarvelCharactersCliGemEthel::Characters

Inherits:
Object
  • Object
show all
Defined in:
lib/marvel_characters_cli_gem_ethel/characters.rb

Constant Summary collapse

@@all =
[]

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCharacters

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_typeObject

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_powersObject

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

#numberObject

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_powersObject

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_nameObject

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_nameObject

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

#urlObject

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

.allObject



12
13
14
# File 'lib/marvel_characters_cli_gem_ethel/characters.rb', line 12

def self.all
  @@all
end