lib/recurly.rb
# allows configuration from a json string that contains the fields:
# username,password,site,private_key
allows configuration from a json string that contains the fields:
username,password,site,private_key
allows configuration from a json string that contains the fields : username password site private_key
def configure_from_json(json_string)
      config_data = ActiveSupport::JSON.decode(json_string)
      configure do |c|
        c.username = config_data['username']
        c.password = config_data['password']
        c.subdomain = config_data['subdomain']
        c.private_key = config_data['private_key']
        c.environment = config_data['environment']
      end
    end
def configure_from_json ( json_string ) config_data = ActiveSupport :: JSON . decode ( json_string ) configure do | c | c . username = config_data [ 'username' ] c . password = config_data [ 'password' ] c . subdomain = config_data [ 'subdomain' ] c . private_key = config_data [ 'private_key' ] c . environment = config_data [ 'environment' ] end end
allows configuration from a json string that contains the fields:
username,password,site,private_key
allows configuration from a json string that contains the fields : username password site private_key
json_string
<not_specific>