Class: Strava::Models::DetailedPhotos

Inherits:
Response show all
Defined in:
lib/strava/models/detailed_photos.rb

Overview

Note:

This model is not documented by Strava API documentation. Properties are inferred from API responses.

Represents detailed photo information for an activity.

Contains the primary photo and total photo count for an activity. This model is not documented in the official Strava API reference.

Examples:

Accessing activity photos

activity = client.activity(1234567890)
if activity.photos
  puts "Total photos: #{activity.photos.count}"
  if activity.photos.primary
    puts "Primary photo ID: #{activity.photos.primary.id}"
  end
end

See Also:

Instance Method Summary collapse

Instance Method Details

#countInteger?

Note:

Not documented by Strava API

Returns Total number of photos attached to the activity.

Returns:

  • (Integer, nil)

    Total number of photos attached to the activity



37
# File 'lib/strava/models/detailed_photos.rb', line 37

property 'count'

#primaryPhoto?

Note:

Not documented by Strava API

Returns The primary/featured photo for the activity.

Returns:

  • (Photo, nil)

    The primary/featured photo for the activity



29
# File 'lib/strava/models/detailed_photos.rb', line 29

property 'primary', transform_with: ->(v) { Strava::Models::Photo.new(v) }

#use_primary_photoBoolean?

Note:

Not documented by Strava API

Returns Whether to use the primary photo for display.

Returns:

  • (Boolean, nil)

    Whether to use the primary photo for display



33
# File 'lib/strava/models/detailed_photos.rb', line 33

property 'use_primary_photo'