Sha256: f98d6d5f864c78d1e503c33f4d2b2cc382f755214d5d71206eb9721c24325898

Contents?: true

Size: 385 Bytes

Versions: 6

Compression:

Stored size: 385 Bytes

Contents

# frozen_string_literal: true

module Strava
  module Models
    class ClubMember < Strava::Models::Response
      property 'resource_state'
      property 'firstname'
      property 'lastname'
      property 'owner'
      property 'admin'
      property 'membership'

      def name
        [firstname, lastname].compact.join(' ') if firstname || lastname
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
strava-ruby-client-2.2.0 lib/strava/models/club_member.rb
strava-ruby-client-2.1.0 lib/strava/models/club_member.rb
strava-ruby-client-2.0.0 lib/strava/models/club_member.rb
strava-ruby-client-1.1.0 lib/strava/models/club_member.rb
strava-ruby-client-1.0.1 lib/strava/models/club_member.rb
strava-ruby-client-1.0.0 lib/strava/models/club_member.rb