Class: YiffSpace::Configuration::Images

Inherits:
Object
  • Object
show all
Defined in:
lib/yiffspace/configuration/images.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeImages

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_typeObject

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_typeObject

Returns the value of attribute default_banner_type.



6
7
8
# File 'lib/yiffspace/configuration/images.rb', line 6

def default_banner_type
  @default_banner_type
end

#httparty_optionsObject

Returns the value of attribute httparty_options.



6
7
8
# File 'lib/yiffspace/configuration/images.rb', line 6

def httparty_options
  @httparty_options
end

#server_urlObject

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_tokenObject

Returns the value of attribute update_token.



6
7
8
# File 'lib/yiffspace/configuration/images.rb', line 6

def update_token
  @update_token
end