Module: EgovUtils::AzaharaJsonResourceFormat

Extended by:
AzaharaJsonResourceFormat
Includes:
ActiveResource::Formats::JsonFormat
Included in:
AzaharaJsonResourceFormat
Defined in:
app/resources/egov_utils/love.rb

Instance Method Summary collapse

Instance Method Details

#decode(json) ⇒ Object



8
9
10
11
# File 'app/resources/egov_utils/love.rb', line 8

def decode(json)
  resources = super(json)
  (resources.is_a?(Hash) && resources.key?('entities')) ? resources['entities'] : resources
end