Class: ApiExt::V1::PropResource
- Inherits:
-
JSONAPI::Resource
- Object
- JSONAPI::Resource
- ApiExt::V1::PropResource
- Defined in:
- app/resources/pwb/api_ext/v1/prop_resource.rb
Instance Method Summary collapse
- #extras ⇒ Object
- #photos ⇒ Object
-
#property_photos ⇒ Object
TODO - fix client side so I don’t have to use these legacy names.
Instance Method Details
#extras ⇒ Object
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 |
#photos ⇒ Object
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_photos ⇒ Object
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 |