Class: Twitch::CustomReward::CustomRewardImage

Inherits:
Object
  • Object
show all
Defined in:
lib/twitch/custom_reward.rb

Overview

Data object for images of Twitch custom rewards

Instance Attribute Summary collapse

Instance Method Summary collapse

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_1xObject (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_2xObject (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_4xObject (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