Class: Twitch::CustomReward::CustomRewardImage
- Inherits:
-
Object
- Object
- Twitch::CustomReward::CustomRewardImage
- Defined in:
- lib/twitch/custom_reward.rb
Overview
Data object for images of Twitch custom rewards
Instance Attribute Summary collapse
-
#url_1x ⇒ Object
readonly
The URL to a small version of the image.
-
#url_2x ⇒ Object
readonly
The URL to a medium version of the image.
-
#url_4x ⇒ Object
readonly
The URL to a large version of the image.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ CustomRewardImage
constructor
A new instance of CustomRewardImage.
Constructor Details
#initialize(attributes = {}) ⇒ CustomRewardImage
Returns a new instance of CustomRewardImage.
15 16 17 18 19 |
# File 'lib/twitch/custom_reward.rb', line 15 def initialize(attributes = {}) attributes.each do |key, value| instance_variable_set "@#{key}", value end end |
Instance Attribute Details
#url_1x ⇒ Object (readonly)
The URL to a small version of the image.
9 10 11 |
# File 'lib/twitch/custom_reward.rb', line 9 def url_1x @url_1x end |
#url_2x ⇒ Object (readonly)
The URL to a medium version of the image.
11 12 13 |
# File 'lib/twitch/custom_reward.rb', line 11 def url_2x @url_2x end |
#url_4x ⇒ Object (readonly)
The URL to a large version of the image.
13 14 15 |
# File 'lib/twitch/custom_reward.rb', line 13 def url_4x @url_4x end |