class Fitbark::Data::DogInfo

Defines structure for dog's informations.

Original attribute names from source API:

Public Instance Methods

birth() click to toggle source

parse source String value into Date for birth attribute

# File lib/fitbark/data/dog_info.rb, line 36
def birth
  date_parser(self[:birth])
end
Also aliased as: birth_on
birth_on()
Alias for: birth
breed1() click to toggle source

first breed according to Fitbark::Data::Breed

# File lib/fitbark/data/dog_info.rb, line 97
def breed1
  init_breed(self[:breed1])
end
Also aliased as: first_breed
breed2() click to toggle source

second breed according to Fitbark::Data::Breed

# File lib/fitbark/data/dog_info.rb, line 104
def breed2
  init_breed(self[:breed2])
end
Also aliased as: second_breed
first_breed()
Alias for: breed1
last_min_time() click to toggle source

parse String value into Time for last_min_time attribute

# File lib/fitbark/data/dog_info.rb, line 73
def last_min_time
  time_parser(self[:last_min_time])
end
Also aliased as: last_minute_at
last_minute_activity() click to toggle source

parse String value into Time for last_min_activity attribute

# File lib/fitbark/data/dog_info.rb, line 80
def last_minute_activity
  self[:last_min_activity]
end
last_minute_at()
Alias for: last_min_time
last_sync() click to toggle source

parse String value into Time for last_sync attribute

# File lib/fitbark/data/dog_info.rb, line 90
def last_sync
  time_parser(self[:last_sync])
end
Also aliased as: sync_at
medical_conditions() click to toggle source

an array of Fitbark::Data::MedicalCondition objects

# File lib/fitbark/data/dog_info.rb, line 111
def medical_conditions
  self[:medical_conditions].map do |mc|
    init_medical_condition(mc)
  end
end
postal_code() click to toggle source

an alias for zip attribute

# File lib/fitbark/data/dog_info.rb, line 48
def postal_code
  self[:zip]
end
second_breed()
Alias for: breed2
sex() click to toggle source

an alias for source gender attribute

# File lib/fitbark/data/dog_info.rb, line 43
def sex
  self[:gender]
end
sync_at()
Alias for: last_sync
today_activity_points() click to toggle source

an alias for activity_value attribute

# File lib/fitbark/data/dog_info.rb, line 85
def today_activity_points
  self[:activity_value]
end
today_minutes_active() click to toggle source

an alias for min_active attribute

# File lib/fitbark/data/dog_info.rb, line 63
def today_minutes_active
  self[:min_active]
end
today_minutes_playing() click to toggle source

an alias for min_play attribute

# File lib/fitbark/data/dog_info.rb, line 58
def today_minutes_playing
  self[:min_play]
end
today_minutes_resting() click to toggle source

an alias for min_rest attribute

# File lib/fitbark/data/dog_info.rb, line 68
def today_minutes_resting
  self[:min_rest]
end
zip_code() click to toggle source

an alias for zip attribute

# File lib/fitbark/data/dog_info.rb, line 53
def zip_code
  self[:zip]
end