class Cfan122::ExamPlanDetail::Request

Constants

PARAMS

Public Instance Methods

execute(params = {}) click to toggle source
# File lib/cfan122/operations/exam_plan_detail.rb, line 12
def execute params = {}
  options = attributes.merge(params)
  self.class.post('/m/examplan/getExamPlanDetail', body: to_params(options))
end

Private Instance Methods

set_request_params() click to toggle source
# File lib/cfan122/operations/exam_plan_detail.rb, line 18
def set_request_params
  self.attributes = {
    startTime: Date.today,
    endTime: Date.today + 1.year,
    fzjg: city, kscx: type,
    ksdd: location, kskm: subject,
    size: 99, zt: 0
  }
end