Class: Mediaburst::Rails::Config

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/mediaburst/rails/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fromObject

Returns the value of attribute from.



8
9
10
# File 'lib/mediaburst/rails/config.rb', line 8

def from
  @from
end

#passwordObject

Returns the value of attribute password.



8
9
10
# File 'lib/mediaburst/rails/config.rb', line 8

def password
  @password
end

#unique_idObject

Returns the value of attribute unique_id.



8
9
10
# File 'lib/mediaburst/rails/config.rb', line 8

def unique_id
  @unique_id
end

#usernameObject

Returns the value of attribute username.



8
9
10
# File 'lib/mediaburst/rails/config.rb', line 8

def username
  @username
end

Instance Method Details

#from_hash(settings) ⇒ Object



10
11
12
13
14
# File 'lib/mediaburst/rails/config.rb', line 10

def from_hash(settings)
  settings.each_pair do |key, value|
    send("#{key}=", value) if respond_to?("#{key}=")
  end
end