Sha256: e767a0aefe31d89f22fa0e815c26ef0a476700a490ef54c9a35610372b5c8c34
Contents?: true
Size: 947 Bytes
Versions: 2
Compression:
Stored size: 947 Bytes
Contents
module Strava module Models class ClubEvent < Model property 'id' property 'resource_state' property 'title' property 'club_id' property 'club', transform_with: ->(c) { Strava::Models::Club.new(c) } property 'organizing_athlete', transform_with: ->(oa) { Strava::Models::Athlete.new(oa) } property 'activity_type' property 'created_at', transform_with: ->(v) { Time.parse(v) } property 'route_id' property 'route', transform_with: ->(r) { Strava::Models::Route.new(r) } property 'women_only' property 'private' property 'skill_levels' property 'terrain' property 'upcoming_occurrences', transform_with: ->(upcoming) { upcoming.map { |o| Time.parse(o) } } property 'zone' property 'address' property 'start_latlng' def strava_url "https://www.strava.com/clubs/#{club_id}/group_events/#{id}" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
strava-ruby-client-0.4.2 | lib/strava/models/club_event.rb |
strava-ruby-client-0.4.1 | lib/strava/models/club_event.rb |