class FantasticRobot::Model::Attachment::FantasticRobot::Model::Attachment::Model::Attachment::Base
Public Instance Methods
get_file()
click to toggle source
Function to get the file attached (if there is any)
# File lib/fantastic_robot/model/attachment/base.rb, line 6 def get_file unless (self.file_id.blank?) request = FantasticRobot::Request::GetFile(file_id: self.file_id) response = FantasticRobot::Model::File.new(JSON.parse(request.api_call)) end end