Class: PokeApi::Machine

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

Overview

Machine object handling all data fetched from /machine

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) ⇒ Machine

Returns a new instance of Machine.



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

def initialize(data)
  assign_data(data)
end

Instance Attribute Details

#itemObject (readonly)

Returns the value of attribute item.



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

def item
  @item
end

#moveObject (readonly)

Returns the value of attribute move.



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

def move
  @move
end

#version_groupObject (readonly)

Returns the value of attribute version_group.



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

def version_group
  @version_group
end