Class: PokeApi::Utility::Language
- Inherits:
-
NamedApiResource
- Object
- NamedApiResource
- PokeApi::Utility::Language
- Defined in:
- lib/poke_api/utility/language.rb
Overview
Utility Language object used by several PokeApi endpoints
Instance Attribute Summary collapse
-
#iso3166 ⇒ Object
readonly
Returns the value of attribute iso3166.
-
#iso639 ⇒ Object
readonly
Returns the value of attribute iso639.
-
#names ⇒ Object
readonly
Returns the value of attribute names.
-
#official ⇒ Object
readonly
Returns the value of attribute official.
Attributes inherited from NamedApiResource
Instance Method Summary collapse
-
#initialize(data) ⇒ Language
constructor
A new instance of Language.
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) ⇒ Language
Returns a new instance of Language.
10 11 12 |
# File 'lib/poke_api/utility/language.rb', line 10 def initialize(data) assign_data(data) end |
Instance Attribute Details
#iso3166 ⇒ Object (readonly)
Returns the value of attribute iso3166.
5 6 7 |
# File 'lib/poke_api/utility/language.rb', line 5 def iso3166 @iso3166 end |
#iso639 ⇒ Object (readonly)
Returns the value of attribute iso639.
5 6 7 |
# File 'lib/poke_api/utility/language.rb', line 5 def iso639 @iso639 end |
#names ⇒ Object (readonly)
Returns the value of attribute names.
5 6 7 |
# File 'lib/poke_api/utility/language.rb', line 5 def names @names end |
#official ⇒ Object (readonly)
Returns the value of attribute official.
5 6 7 |
# File 'lib/poke_api/utility/language.rb', line 5 def official @official end |