Class: Files::Image
- Inherits:
-
Object
- Object
- Files::Image
- Defined in:
- lib/files.com/models/image.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(attributes = {}, options = {}) ⇒ Image
constructor
A new instance of Image.
-
#name ⇒ Object
string - Image name.
-
#uri ⇒ Object
string - Image URI.
Constructor Details
#initialize(attributes = {}, options = {}) ⇒ Image
Returns a new instance of Image.
7 8 9 10 |
# File 'lib/files.com/models/image.rb', line 7 def initialize(attributes = {}, = {}) @attributes = attributes || {} = || {} end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
5 6 7 |
# File 'lib/files.com/models/image.rb', line 5 def attributes @attributes end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/files.com/models/image.rb', line 5 def end |
Instance Method Details
#name ⇒ Object
string - Image name
13 14 15 |
# File 'lib/files.com/models/image.rb', line 13 def name @attributes[:name] end |
#uri ⇒ Object
string - Image URI
18 19 20 |
# File 'lib/files.com/models/image.rb', line 18 def uri @attributes[:uri] end |