Class: MAndM::Server
- Inherits:
-
Object
- Object
- MAndM::Server
- Defined in:
- lib/m_and_m/server.rb
Instance Attribute Summary collapse
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
Instance Method Summary collapse
-
#initialize(base_url = nil) ⇒ Server
constructor
A new instance of Server.
- #messages ⇒ Object
Constructor Details
#initialize(base_url = nil) ⇒ Server
Returns a new instance of Server.
9 10 11 |
# File 'lib/m_and_m/server.rb', line 9 def initialize base_url=nil @base_url = base_url || ENV['M_AND_M_URL'] end |
Instance Attribute Details
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
7 8 9 |
# File 'lib/m_and_m/server.rb', line 7 def base_url @base_url end |
Instance Method Details
#messages ⇒ Object
13 14 15 |
# File 'lib/m_and_m/server.rb', line 13 def HTTParty.get base_url end |