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.
74 75 76 77 78 79 |
# File 'lib/hexapic/repository.rb', line 74 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.
72 73 74 |
# File 'lib/hexapic/repository.rb', line 72 def filename @filename end |
#path ⇒ Object
Returns the value of attribute path.
72 73 74 |
# File 'lib/hexapic/repository.rb', line 72 def path @path end |
#post_url ⇒ Object
Returns the value of attribute post_url.
72 73 74 |
# File 'lib/hexapic/repository.rb', line 72 def post_url @post_url end |
#url ⇒ Object
Returns the value of attribute url.
72 73 74 |
# File 'lib/hexapic/repository.rb', line 72 def url @url end |