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.



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

#filenameObject

Returns the value of attribute filename.



62
63
64
# File 'lib/hexapic/repository.rb', line 62

def filename
  @filename
end

#pathObject

Returns the value of attribute path.



62
63
64
# File 'lib/hexapic/repository.rb', line 62

def path
  @path
end

#post_urlObject

Returns the value of attribute post_url.



62
63
64
# File 'lib/hexapic/repository.rb', line 62

def post_url
  @post_url
end

#urlObject

Returns the value of attribute url.



62
63
64
# File 'lib/hexapic/repository.rb', line 62

def url
  @url
end