Class: Ravelry::Photo

Inherits:
Data
  • Object
show all
Defined in:
lib/ravelry/photo.rb

Overview

The information used to create ‘Ravelry::Photo` currently comes from Pattern objects.

See Pattern for more information about ‘Pattern` objects.

To utilize the ‘get`, `post`, `delete`, `get_sizes` methods, you have to be authenticated.

Instance Attribute Summary

Attributes inherited from Data

#data, #id

Instance Method Summary collapse

Methods inherited from Data

#initialize

Constructor Details

This class inherits a constructor from Ravelry::Data

Instance Method Details

#buildObject



11
# File 'lib/ravelry/photo.rb', line 11

def build; end

#deleteObject



21
22
23
# File 'lib/ravelry/photo.rb', line 21

def delete
  # TODO - requires authentication
end

#flickr_urlObject



29
30
31
# File 'lib/ravelry/photo.rb', line 29

def flickr_url
  data[:flickr_url]
end

#getObject



13
14
15
# File 'lib/ravelry/photo.rb', line 13

def get
  # TODO - requires authentication
end

#get_sizesObject



25
26
27
# File 'lib/ravelry/photo.rb', line 25

def get_sizes
  # TODO - requires authentication
end

#medium_urlObject



37
38
39
# File 'lib/ravelry/photo.rb', line 37

def medium_url
  data[:medium_url]
end

#postObject



17
18
19
# File 'lib/ravelry/photo.rb', line 17

def post
  # TODO - requires authentication
end

#shelved_urlObject



49
50
51
# File 'lib/ravelry/photo.rb', line 49

def shelved_url
  data[:shelved_url]
end

#small_urlObject



33
34
35
# File 'lib/ravelry/photo.rb', line 33

def small_url
  data[:small_url]
end

#sort_orderObject



53
54
55
# File 'lib/ravelry/photo.rb', line 53

def sort_order
  data[:sort_order]
end

#square_urlObject



41
42
43
# File 'lib/ravelry/photo.rb', line 41

def square_url
  data[:square_url]
end

#thumbnail_urlObject



45
46
47
# File 'lib/ravelry/photo.rb', line 45

def thumbnail_url
  data[:thumbnail_url]
end

#x_offsetObject

Offsets are used to place a small image in a 170x170 pixel square frame.



59
60
61
# File 'lib/ravelry/photo.rb', line 59

def x_offset
  data[:x_offset]
end

#y_offsetObject

Offsets are used to place a small image in a 170x170 pixel square frame.



65
66
67
# File 'lib/ravelry/photo.rb', line 65

def y_offset
  data[:y_offset]
end