Advertisement
Guest User

Untitled

a guest
Nov 30th, 2015
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.95 KB | None | 0 0
  1. class ReportPdf
  2. include Prawn::View
  3. def initialize(notice)
  4. @notice = notice
  5. noc_header
  6. notice_of_claim
  7. verification_header
  8. verification_body
  9. end
  10.  
  11.  
  12. def noc_header
  13.  
  14. end
  15.  
  16. def notice_of_claim
  17. text "TO: THE COMPTROLLER OF THE CITY OF NEW YORK CITY
  18.  
  19. PLEASE TAKE NOTICE that #{@notice.name} intends to file claims claims will be for damages against the City of New York, #{generate_officers}
  20.  
  21. In support of their claims, Claimant states as follows:
  22.  
  23. 1. The time, place, and manner in which the claims arose are as follows:
  24.  
  25. On [DATE] at [Time] at [Location] [Claimant was subjected to [False arrest and false imprisonment] by NYPD officers [John Doe / Officers name].] [Claimant suffered a battery and was subjected to excessive force by being [type of battery] at the hands of NYPD officers [John Doe / Officer name].] [Claimant was subjected to an assault by NYPD officers [John Doe / Officers Name].] [Claimant was subjected to an illegal search of their property when NYPD officers [John Doe / Name of Officers] searched their [property that was searched].] [Claimant’s property, to wit [type of property], was [seized or damaged or both seized and damaged] by NYPD officers [John Doe / Name of officers]. As a result, claimant was subjected to [Any property claims that apply].]
  26.  
  27. 5. Claim for personal injuries, [physical], [emotional, mental, and psychological injury, pain and suffering], [actual medical expenses], [embarrassment and humiliation] sustained by claimant as a result of intentional, reckless, and/or negligent behavior on behalf of agents, servants or employees of New York City, the extent of which has not yet been fully determined.
  28.  
  29. 6. Claimant claims [medical bills, doctor bills], [lost earnings], [damages to personal property], [damages for pain and suffering] and punitive damages, and diverse general and special damages, the exact extent of which has not yet been determined. Claimant also claims legal expenses..
  30.  
  31. 7. Please take notice that [FIRST NAME] [LAST NAME] presents this claim for adjustment and payment and notify Respondents that, unless this claim is adjusted and paid within the time provided by law, they intend to commence an action against Respondents.
  32.  
  33. Dated: New York, NY
  34. [DATE OF FILING]"
  35. end
  36.  
  37. def verification_header
  38.  
  39. end
  40.  
  41. def verification_body
  42.  
  43. end
  44.  
  45. def generate_officers
  46. officers = @notice.officers
  47. if officers.length > 0:
  48. officers = officers.map { |o| "Officer #{o.name}" }
  49. officer_text = officers.join(", ")
  50. else
  51. officer_text = "John Doe"
  52. end
  53. officer_text
  54. end
  55.  
  56. def generate_incident_details
  57. details = []
  58. case incident_details
  59. when @notice.officer_arrested_me == true
  60. details << "Claimant was subjected to false arrest and false imprisonment by NYPD officers [John Doe / Officers name]."
  61. when @notice.officer_injured_me == true
  62. details << "Claimant suffered a battery and was subjected to excessive force by being [type of battery] at the hands of NYPD officers [John Doe / Officer name]."
  63. when @notice.officer_threatened_me == true
  64. details << "[Claimant was subjected to an assault by NYPD officers [John Doe / Officers Name].]"
  65. when @notice.officer_searched == true
  66. details << "[Claimant was subjected to an illegal search of their property when NYPD officers [John Doe / Name of Officers] searched their [property that was searched].]"
  67. when @notice.officer_took_property == true || @notice.officer_damaged_property == true || @notice.officer_destroyed_property == true
  68. details << "[Claimant’s property, to wit [type of property], was [seized or damaged or both seized and damaged] by NYPD officers [John Doe / Name of officers]. As a result, claimant was subjected to [Any property claims that apply].]"
  69. end
  70.  
  71. details
  72. end
  73.  
  74. def generate_injury_details
  75. if @notice.injury_details.any?
  76.  
  77. end
  78. end
  79.  
  80. def generate_damages
  81.  
  82. end
  83. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement