Sha256: a3dc4b6eb11e5b6ecad2d5b060ac2b451e883e71c47e118ea55653f0b9b02cee

Contents?: true

Size: 335 Bytes

Versions: 6

Compression:

Stored size: 335 Bytes

Contents

module Strava
  module Models
    class ClubMember < Model
      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-0.4.2 lib/strava/models/club_member.rb
strava-ruby-client-0.4.1 lib/strava/models/club_member.rb
strava-ruby-client-0.4.0 lib/strava/models/club_member.rb
strava-ruby-client-0.3.2 lib/strava/models/club_member.rb
strava-ruby-client-0.3.1 lib/strava/models/club_member.rb
strava-ruby-client-0.3.0 lib/strava/models/club_member.rb