Class: Ravelry::Photo
- Inherits:
-
Data
- Object
- Data
- Ravelry::Photo
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
#build ⇒ Object
11
|
# File 'lib/ravelry/photo.rb', line 11
def build; end
|
#delete ⇒ Object
21
22
23
|
# File 'lib/ravelry/photo.rb', line 21
def delete
end
|
#flickr_url ⇒ Object
29
30
31
|
# File 'lib/ravelry/photo.rb', line 29
def flickr_url
data[:flickr_url]
end
|
#get ⇒ Object
13
14
15
|
# File 'lib/ravelry/photo.rb', line 13
def get
end
|
#get_sizes ⇒ Object
25
26
27
|
# File 'lib/ravelry/photo.rb', line 25
def get_sizes
end
|
#medium_url ⇒ Object
37
38
39
|
# File 'lib/ravelry/photo.rb', line 37
def medium_url
data[:medium_url]
end
|
#post ⇒ Object
17
18
19
|
# File 'lib/ravelry/photo.rb', line 17
def post
end
|
#shelved_url ⇒ Object
49
50
51
|
# File 'lib/ravelry/photo.rb', line 49
def shelved_url
data[:shelved_url]
end
|
#small_url ⇒ Object
33
34
35
|
# File 'lib/ravelry/photo.rb', line 33
def small_url
data[:small_url]
end
|
#sort_order ⇒ Object
53
54
55
|
# File 'lib/ravelry/photo.rb', line 53
def sort_order
data[:sort_order]
end
|
#square_url ⇒ Object
41
42
43
|
# File 'lib/ravelry/photo.rb', line 41
def square_url
data[:square_url]
end
|
#thumbnail_url ⇒ Object
45
46
47
|
# File 'lib/ravelry/photo.rb', line 45
def thumbnail_url
data[:thumbnail_url]
end
|
#x_offset ⇒ Object
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_offset ⇒ Object
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
|