Sha256: 7920f4a67b6cc231420d602929428c92e1a163966e7b71c8bd2ae3683c54f8cb

Contents?: true

Size: 578 Bytes

Versions: 5

Compression:

Stored size: 578 Bytes

Contents

module Strava
  module Models
    class Photo < Model
      property 'id'
      property 'unique_id'
      property 'urls'
      property 'source'
      property 'athlete_id'
      property 'activity_id'
      property 'activity_name'
      property 'resource_state'
      property 'caption'
      property 'created_at', transform_with: ->(v) { Time.parse(v) }
      property 'created_at_local', transform_with: ->(v) { Time.parse(v) }
      property 'uploaded_at', transform_with: ->(v) { Time.parse(v) }
      property 'sizes'
      property 'default_photo'
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
strava-ruby-client-0.4.2 lib/strava/models/photo.rb
strava-ruby-client-0.4.1 lib/strava/models/photo.rb
strava-ruby-client-0.4.0 lib/strava/models/photo.rb
strava-ruby-client-0.3.2 lib/strava/models/photo.rb
strava-ruby-client-0.3.1 lib/strava/models/photo.rb