Class: GallerySync::SerPhoto

Inherits:
Struct
  • Object
show all
Defined in:
lib/gallery_sync/gallery_sync.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#full_urlObject

Returns the value of attribute full_url

Returns:

  • (Object)

    the current value of full_url



204
205
206
# File 'lib/gallery_sync/gallery_sync.rb', line 204

def full_url
  @full_url
end

#medium_urlObject

Returns the value of attribute medium_url

Returns:

  • (Object)

    the current value of medium_url



204
205
206
# File 'lib/gallery_sync/gallery_sync.rb', line 204

def medium_url
  @medium_url
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



204
205
206
# File 'lib/gallery_sync/gallery_sync.rb', line 204

def name
  @name
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



204
205
206
# File 'lib/gallery_sync/gallery_sync.rb', line 204

def path
  @path
end

#thumb_urlObject

Returns the value of attribute thumb_url

Returns:

  • (Object)

    the current value of thumb_url



204
205
206
# File 'lib/gallery_sync/gallery_sync.rb', line 204

def thumb_url
  @thumb_url
end

Class Method Details

.value_of(photo) ⇒ Object



205
206
207
# File 'lib/gallery_sync/gallery_sync.rb', line 205

def self.value_of(photo)
  SerPhoto.new(photo.name,photo.path,photo.thumb_url,photo.medium_url,photo.full_url)
end