class Prefinery::Tester

List testers

Prefinery::Tester.find(:all, :params => { :beta_id => 74 })
Prefinery::Tester.find(:all, :params => { :beta_id => 74, :email => "justin@prefinery.com" })

Show a single tester

tester = Prefinery::Tester.find(1259, :params => { :beta_id => 74 })

Creating a tester

tester = Prefinery::Tester.new(:beta_id => 74)
tester.email = 'justin@prefinery.com'
tester.status = 'active'
tester.invitation_code = 'TECHCRUNCH'
tester.profile = {:first_name => 'Justin', :last_name => 'Britten'}
tester.save

Updating a tester

tester = Prefinery::Tester.find(1259, :params => { :beta_id => 74 })
tester.profile = {:city => 'Austin', :state => 'TX'}
tester.save

Deleting a tester

tester = Prefinery::Tester.find(1259, :params => { :beta_id => 74 })
tester.destroy

Check-in a tester

tester = Prefinery::Tester.find(1259, :params => { :beta_id => 74 })
tester.checkin

Public Instance Methods

checkin() click to toggle source
# File lib/prefinery.rb, line 134
def checkin
  begin
    post(:checkin)
    true
  rescue
    false
  end
end
profile=(profile_attributes) click to toggle source
# File lib/prefinery.rb, line 121
def profile=(profile_attributes)
  attributes['profile'] = profile_attributes
end
verified?(invitation_code) click to toggle source
# File lib/prefinery.rb, line 125
def verified?(invitation_code)
  begin
    get(:verify, :invitation_code => invitation_code)
    true
  rescue
    false
  end
end