Class: Immoscout::Models::Picture

Inherits:
Base
  • Object
show all
Includes:
Actions::Attachment, Concerns::Propertiable, Concerns::Renderable
Defined in:
lib/immoscout/models/picture.rb

Overview

Attachment (picture) of a Real Estate. See: bit.ly/3iE6K9h

Instance Attribute Summary collapse

Attributes inherited from Base

#base

Method Summary

Methods included from Actions::Attachment

all, content_type_from_extension, #destroy, #save

Methods included from Concerns::Modelable

#api, from_raw, #handle_response, handle_response, #id_from_response, id_from_response, unpack

Methods included from Concerns::Propertiable

#attributes, find_property, #method_missing, property, #respond_to_missing?

Methods included from Concerns::Renderable

#as_json, #to_json

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Immoscout::Models::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Immoscout::Models::Concerns::Propertiable

Instance Attribute Details

#attachableObject

Returns the value of attribute attachable.



17
18
19
# File 'lib/immoscout/models/picture.rb', line 17

def attachable
  @attachable
end

#fileObject

Returns the value of attribute file.



17
18
19
# File 'lib/immoscout/models/picture.rb', line 17

def file
  @file
end