Class: ApiExt::V1::PropResource

Inherits:
JSONAPI::Resource
  • Object
show all
Defined in:
app/resources/pwb/api_ext/v1/prop_resource.rb

Instance Method Summary collapse

Instance Method Details

#extrasObject



39
40
41
42
43
# File 'app/resources/pwb/api_ext/v1/prop_resource.rb', line 39

def extras
  # override needed here as I have an extras has_many r/n on property
  # which is not yet in use..
  return @model.get_features
end

#photosObject



51
52
53
54
# File 'app/resources/pwb/api_ext/v1/prop_resource.rb', line 51

def photos
  photos = @model.prop_photos
  return photos
end

#property_photosObject

TODO - fix client side so I don’t have to use these legacy names



46
47
48
49
# File 'app/resources/pwb/api_ext/v1/prop_resource.rb', line 46

def property_photos
  photos = @model.prop_photos
  return photos
end