Class: MapBackgrounds::Provider

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, url, enabled, by_default, options = {}) ⇒ Provider

Returns a new instance of Provider.


70
71
72
73
74
75
76
# File 'lib/map_backgrounds.rb', line 70

def initialize(name, url, enabled, by_default, options = {})
  @name = name
  @url = url
  @enabled = enabled
  @by_default = by_default
  @options = options
end

Instance Attribute Details

#by_defaultObject (readonly)

Returns the value of attribute by_default


68
69
70
# File 'lib/map_backgrounds.rb', line 68

def by_default
  @by_default
end

#enabledObject (readonly)

Returns the value of attribute enabled


68
69
70
# File 'lib/map_backgrounds.rb', line 68

def enabled
  @enabled
end

#nameObject (readonly)

Returns the value of attribute name


68
69
70
# File 'lib/map_backgrounds.rb', line 68

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options


68
69
70
# File 'lib/map_backgrounds.rb', line 68

def options
  @options
end

#urlObject (readonly)

Returns the value of attribute url


68
69
70
# File 'lib/map_backgrounds.rb', line 68

def url
  @url
end

Instance Method Details

#labelObject


78
79
80
# File 'lib/map_backgrounds.rb', line 78

def label
  name.to_s.camelize
end