Class: Hexapic::Repository::Picture
- Inherits:
-
Object
- Object
- Hexapic::Repository::Picture
- Defined in:
- lib/hexapic/repository.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#path ⇒ Object
Returns the value of attribute path.
-
#post_url ⇒ Object
Returns the value of attribute post_url.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url, post_url, filename, path = nil) ⇒ Picture
constructor
A new instance of Picture.
Constructor Details
#initialize(url, post_url, filename, path = nil) ⇒ Picture
Returns a new instance of Picture.
64 65 66 67 68 69 |
# File 'lib/hexapic/repository.rb', line 64 def initialize(url, post_url, filename, path = nil) @url = url @post_url = post_url @filename = filename @path = path end |
Instance Attribute Details
#filename ⇒ Object
Returns the value of attribute filename.
62 63 64 |
# File 'lib/hexapic/repository.rb', line 62 def filename @filename end |
#path ⇒ Object
Returns the value of attribute path.
62 63 64 |
# File 'lib/hexapic/repository.rb', line 62 def path @path end |
#post_url ⇒ Object
Returns the value of attribute post_url.
62 63 64 |
# File 'lib/hexapic/repository.rb', line 62 def post_url @post_url end |
#url ⇒ Object
Returns the value of attribute url.
62 63 64 |
# File 'lib/hexapic/repository.rb', line 62 def url @url end |