Sha256: 6cf95d824dbd8fbb9a9d73354bac14f2e00d22fb4ea08570b6ac9c2f8cfe2cbb
Contents?: true
Size: 997 Bytes
Versions: 6
Compression:
Stored size: 997 Bytes
Contents
# frozen_string_literal: true module Strava module Models class ClubEvent < Strava::Models::Response 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
6 entries across 6 versions & 1 rubygems