Class: Kit::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/kit/client.rb

Instance Method Summary collapse

Constructor Details

#initializeClient

Creates a new Client


9
10
11
12
13
# File 'lib/kit/client.rb', line 9

def initialize
  @template = Addressable::Template.new(
    'https://legacy.usacycling.org/results/{?compid}'
  )
end

Instance Method Details

#find(license_number) ⇒ Member

Builds a Table for the given license-holder


20
21
22
# File 'lib/kit/client.rb', line 20

def find(license_number)
  Kit::Member.from_table(table_for(license_number))
end