Class: Gendered::Config
- Inherits:
-
Struct
- Object
- Struct
- Gendered::Config
- Defined in:
- lib/gendered.rb
Instance Attribute Summary collapse
-
#apikey ⇒ Object
Returns the value of attribute apikey.
-
#connection ⇒ Object
Returns the value of attribute connection.
-
#country_id ⇒ Object
Returns the value of attribute country_id.
-
#language_id ⇒ Object
Returns the value of attribute language_id.
Instance Method Summary collapse
Instance Attribute Details
#apikey ⇒ Object
Returns the value of attribute apikey
23 24 25 |
# File 'lib/gendered.rb', line 23 def apikey @apikey end |
#connection ⇒ Object
Returns the value of attribute connection
23 24 25 |
# File 'lib/gendered.rb', line 23 def connection @connection end |
#country_id ⇒ Object
Returns the value of attribute country_id
23 24 25 |
# File 'lib/gendered.rb', line 23 def country_id @country_id end |
#language_id ⇒ Object
Returns the value of attribute 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 |