Class: Rentlinx::PropertyPhoto
- Defined in:
- lib/rentlinx/models/property_photo.rb
Overview
A photo on a property
Direct Known Subclasses
Constant Summary collapse
- ATTRIBUTES =
[:url, :caption, :position, :propertyID, :unitID].freeze
- REQUIRED_ATTRIBUTES =
[:url, :propertyID].freeze
Instance Method Summary collapse
-
#to_hash ⇒ Object
Converts the photo to a hash.
Methods inherited from Base
#attributes, get_from_id, #initialize, #patch, #patch_valid?, #post, #required_attributes, type, #unpost, unpost, #valid?, #validate
Constructor Details
This class inherits a constructor from Rentlinx::Base
Instance Method Details
#to_hash ⇒ Object
Converts the photo to a hash
13 14 15 |
# File 'lib/rentlinx/models/property_photo.rb', line 13 def to_hash { url: url, caption: } end |