Class: PokeApi::Machine
- Inherits:
-
NamedApiResource
- Object
- NamedApiResource
- PokeApi::Machine
- Defined in:
- lib/poke_api/machine.rb
Overview
Machine object handling all data fetched from /machine
Instance Attribute Summary collapse
-
#item ⇒ Object
readonly
Returns the value of attribute item.
-
#move ⇒ Object
readonly
Returns the value of attribute move.
-
#version_group ⇒ Object
readonly
Returns the value of attribute version_group.
Attributes inherited from NamedApiResource
Instance Method Summary collapse
-
#initialize(data) ⇒ Machine
constructor
A new instance of Machine.
Methods inherited from NamedApiResource
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
#item ⇒ Object (readonly)
Returns the value of attribute item.
4 5 6 |
# File 'lib/poke_api/machine.rb', line 4 def item @item end |
#move ⇒ Object (readonly)
Returns the value of attribute move.
4 5 6 |
# File 'lib/poke_api/machine.rb', line 4 def move @move end |
#version_group ⇒ Object (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 |