Class: FantasticRobot::Model::File
- Defined in:
- lib/fantastic_robot/model/file.rb
Overview
This object represents a file.
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#file_id ⇒ Object
Returns the value of attribute file_id.
-
#file_path ⇒ Object
Returns the value of attribute file_path.
-
#file_size ⇒ Object
Returns the value of attribute file_size.
Class Method Summary collapse
Methods inherited from Base
#attributes, #initialize, #to_h
Constructor Details
This class inherits a constructor from FantasticRobot::Model::Base
Instance Attribute Details
#file_id ⇒ Object
Returns the value of attribute file_id.
5 6 7 |
# File 'lib/fantastic_robot/model/file.rb', line 5 def file_id @file_id end |
#file_path ⇒ Object
Returns the value of attribute file_path.
5 6 7 |
# File 'lib/fantastic_robot/model/file.rb', line 5 def file_path @file_path end |
#file_size ⇒ Object
Returns the value of attribute file_size.
5 6 7 |
# File 'lib/fantastic_robot/model/file.rb', line 5 def file_size @file_size end |
Class Method Details
.file ⇒ Object
10 11 12 |
# File 'lib/fantastic_robot/model/file.rb', line 10 def self.file FantasticRobot.connection.get_by_path(self.file_path) unless self.file_path.blank? end |