Sha256: 2b78e0bd5d0a1a00b7d7b906051658a1a640782daf733cfc1fbf90ea43241d0f

Contents?: true

Size: 329 Bytes

Versions: 7

Compression:

Stored size: 329 Bytes

Contents

module Strava
  module Models
    class Comment < Model
      property 'id'
      property 'activity_id'
      property 'resource_state'
      property 'text'
      property 'created_at', transform_with: ->(v) { Time.parse(v) }
      property 'athlete', transform_with: ->(v) { Strava::Models::Athlete.new(v) }
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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