class Locotimezone::Configuration

Attributes

attributes[R]
google_api_key[RW]

Public Class Methods

new() click to toggle source
# File lib/locotimezone/configuration.rb, line 6
def initialize
  @attributes = default_attributes
end

Public Instance Methods

attr_writers() click to toggle source
# File lib/locotimezone/configuration.rb, line 15
def attr_writers
  attributes.each_with_object({}) do |(key, value), hash|
    hash[key] = "#{value}="
  end
end
attributes=(value) click to toggle source
# File lib/locotimezone/configuration.rb, line 10
def attributes=(value)
  return unless value.respond_to? :has_key?
  @attributes = attributes.merge value
end

Private Instance Methods

default_attributes() click to toggle source
# File lib/locotimezone/configuration.rb, line 23
def default_attributes
  {
    latitude: :latitude,
    longitude: :longitude,
    timezone_id: :timezone_id
  }
end