module TurbaKit::Checkins

Public Instance Methods

checkins(options = {}) click to toggle source
# File lib/turba_kit/checkins.rb, line 3
def checkins(options = {})
  default = {
    page: 0,
    per_page: 10,
    published: true,
    country_code: 'FR',
    type: 'parent'
  }

  get_request("/checkins", {params: default.merge(options)})
end
create_checkin(service_id, wait, options = {}) click to toggle source
# File lib/turba_kit/checkins.rb, line 15
def create_checkin(service_id, wait, options = {})
  default = {
    user: :guest,
    location: 'N/A',
    platform: :web,
    service_id: service_id,
    wait: wait
  }
  post_request("/checkins", {
    params: {
      checkin: default.merge(options)
    }
  })
end