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.



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

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.



70
71
72
# File 'lib/hexapic/repository.rb', line 70

def filename
  @filename
end

#pathObject

Returns the value of attribute path.



70
71
72
# File 'lib/hexapic/repository.rb', line 70

def path
  @path
end

#post_urlObject

Returns the value of attribute post_url.



70
71
72
# File 'lib/hexapic/repository.rb', line 70

def post_url
  @post_url
end

#urlObject

Returns the value of attribute url.



70
71
72
# File 'lib/hexapic/repository.rb', line 70

def url
  @url
end