class HOALife::CCRViolationType

:nodoc

Public Instance Methods

as_json() click to toggle source
Calls superclass method HOALife::Resource#as_json
# File lib/hoalife/ccr_violation_type.rb, line 9
def as_json
  h = super

  h.dig('data', 'relationships').merge!(
    'ccr_article' => { 'data' => { 'id' => ccr_article_id } }
  )

  h
end