lib/nightcrawler_swift/connection.rb in nightcrawler_swift-0.5.0 vs lib/nightcrawler_swift/connection.rb in nightcrawler_swift-0.6.0

- old
+ new

@@ -1,9 +1,9 @@ module NightcrawlerSwift class Connection attr_accessor :auth_response - attr_reader :token_id, :expires_at, :catalog, :admin_url, :upload_url, :public_url + attr_reader :token_id, :expires_at, :catalog, :admin_url, :upload_url, :public_url, :internal_url def connect! authenticate! configure @@ -63,9 +63,10 @@ end def configure_urls @admin_url = opts.admin_url || @endpoints["adminURL"] @public_url = opts.public_url || @endpoints["publicURL"] + @internal_url = opts.internal_url || @endpoints["internalURL"] @upload_url = "#{@admin_url}/#{opts.bucket}" end end end