Module: Appfirst::Client::Shared
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
22 23 24 |
# File 'lib/appfirst/client.rb', line 22 def path @path end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
22 23 24 |
# File 'lib/appfirst/client.rb', line 22 def url @url end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
22 23 24 |
# File 'lib/appfirst/client.rb', line 22 def user @user end |
Instance Method Details
#setup(options) ⇒ Object
24 25 26 27 28 29 30 31 32 33 |
# File 'lib/appfirst/client.rb', line 24 def setup() @url = [:url] || ENV["APPFIRST_URL"] || "https://engineyard.appfirst.com" @path = [:path] || "/api/v3" # For auth @user = [:user] @password = [:password] @logger = [:logger] || Logger.new(nil) end |