Class: Hexapic::Repository::Picture

Inherits:
Object
  • Object
show all
Defined in:
lib/hexapic/repository.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#filenameObject

Returns the value of attribute filename.



72
73
74
# File 'lib/hexapic/repository.rb', line 72

def filename
  @filename
end

#pathObject

Returns the value of attribute path.



72
73
74
# File 'lib/hexapic/repository.rb', line 72

def path
  @path
end

#post_urlObject

Returns the value of attribute post_url.



72
73
74
# File 'lib/hexapic/repository.rb', line 72

def post_url
  @post_url
end

#urlObject

Returns the value of attribute url.



72
73
74
# File 'lib/hexapic/repository.rb', line 72

def url
  @url
end