Class: Gendered::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#apikeyObject

Returns the value of attribute apikey

Returns:

  • (Object)

    the current value of apikey



23
24
25
# File 'lib/gendered.rb', line 23

def apikey
  @apikey
end

#connectionObject

Returns the value of attribute connection

Returns:

  • (Object)

    the current value of connection



23
24
25
# File 'lib/gendered.rb', line 23

def connection
  @connection
end

#country_idObject

Returns the value of attribute country_id

Returns:

  • (Object)

    the current value of country_id



23
24
25
# File 'lib/gendered.rb', line 23

def country_id
  @country_id
end

#language_idObject

Returns the value of attribute language_id

Returns:

  • (Object)

    the current value of language_id



23
24
25
# File 'lib/gendered.rb', line 23

def language_id
  @language_id
end

Instance Method Details

#merge(other) ⇒ Object



24
25
26
27
28
# File 'lib/gendered.rb', line 24

def merge(other)
  hash = respond_to?(:to_h) ? to_h : Hash[each_pair.to_a]
  hash.merge!(other)
  hash.reject! { |k,v| v.nil? }
end