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