class PokeApi::Berry
Berry
object handling all data fetched from /berry
Attributes
firmness[R]
flavors[R]
growth_time[R]
item[R]
max_harvest[R]
natural_gift_power[R]
natural_gift_type[R]
size[R]
smoothness[R]
soil_dryness[R]
Public Class Methods
new(data)
click to toggle source
# File lib/poke_api/berry.rb, line 15 def initialize(data) assign_data(data) end
Private Instance Methods
custom_endpoint_object()
click to toggle source
# File lib/poke_api/berry.rb, line 21 def custom_endpoint_object { firmness: BerryFirmness, flavors: BerryFlavorMap, natural_gift_type: Type } end