Class: YiffSpace::Configuration::Images
- Inherits:
-
Object
- Object
- YiffSpace::Configuration::Images
- Defined in:
- lib/yiffspace/configuration/images.rb
Instance Attribute Summary collapse
-
#default_avatar_type ⇒ Object
Returns the value of attribute default_avatar_type.
-
#default_banner_type ⇒ Object
Returns the value of attribute default_banner_type.
-
#httparty_options ⇒ Object
Returns the value of attribute httparty_options.
-
#server_url ⇒ Object
Returns the value of attribute server_url.
-
#update_token ⇒ Object
Returns the value of attribute update_token.
Instance Method Summary collapse
-
#initialize ⇒ Images
constructor
A new instance of Images.
Constructor Details
#initialize ⇒ Images
Returns a new instance of Images.
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/yiffspace/configuration/images.rb', line 8 def initialize @server_url = "https://images.yiff.space" @default_avatar_type = :discord @default_banner_type = :discord @httparty_options = { timeout: 10, open_timeout: 5, headers: { "User-Agent" => "YiffSpaceRuby/#{YiffSpace::VERSION} (https://yiff.space)", }, } end |
Instance Attribute Details
#default_avatar_type ⇒ Object
Returns the value of attribute default_avatar_type.
6 7 8 |
# File 'lib/yiffspace/configuration/images.rb', line 6 def default_avatar_type @default_avatar_type end |
#default_banner_type ⇒ Object
Returns the value of attribute default_banner_type.
6 7 8 |
# File 'lib/yiffspace/configuration/images.rb', line 6 def @default_banner_type end |
#httparty_options ⇒ Object
Returns the value of attribute httparty_options.
6 7 8 |
# File 'lib/yiffspace/configuration/images.rb', line 6 def @httparty_options end |
#server_url ⇒ Object
Returns the value of attribute server_url.
6 7 8 |
# File 'lib/yiffspace/configuration/images.rb', line 6 def server_url @server_url end |
#update_token ⇒ Object
Returns the value of attribute update_token.
6 7 8 |
# File 'lib/yiffspace/configuration/images.rb', line 6 def update_token @update_token end |