Class: PokeApi::MoveTarget

Inherits:
NamedApiResource show all
Defined in:
lib/poke_api/move_target.rb

Overview

MoveTarget object handling all data fetched from /move-target

Instance Attribute Summary collapse

Attributes inherited from NamedApiResource

#id, #name, #url

Instance Method Summary collapse

Methods inherited from NamedApiResource

#get

Methods included from AssignmentHelpers

assign_list, custom_endpoint_object, endpoint_assignment, get_named_api_resource_from_url, try_to_assign

Constructor Details

#initialize(data) ⇒ MoveTarget

Returns a new instance of MoveTarget.



8
9
10
# File 'lib/poke_api/move_target.rb', line 8

def initialize(data)
  assign_data(data)
end

Instance Attribute Details

#descriptionsObject (readonly)

Returns the value of attribute descriptions.



4
5
6
# File 'lib/poke_api/move_target.rb', line 4

def descriptions
  @descriptions
end

#movesObject (readonly)

Returns the value of attribute moves.



4
5
6
# File 'lib/poke_api/move_target.rb', line 4

def moves
  @moves
end

#namesObject (readonly)

Returns the value of attribute names.



4
5
6
# File 'lib/poke_api/move_target.rb', line 4

def names
  @names
end