Class: GlimrApiClient::Available
  
  
  
  
  
    - Inherits:
- 
      Object
      
        
          - Object
- GlimrApiClient::Available
 show all
      - Extended by:
- SingleForwardable
      - Includes:
- Api
    - Defined in:
- lib/glimr_api_client/available.rb
 
  
    
      Instance Method Summary
      collapse
    
    
  
  
  
  
  
  
  
  
  
  
  Methods included from Api
  #post, #response_body, #timeout
  
    Instance Method Details
    
      
  
  
    #available?  ⇒ Boolean 
  
  
  
  
    | 
13
14
15
16
17
18
19 | # File 'lib/glimr_api_client/available.rb', line 13
def available?
  response_body.fetch(:glimrAvailable).eql?('yes').tap { |status|
    if status.equal?(false)
      raise Unavailable
    end
  }
end | 
 
    
      
  
  
    #call  ⇒ Object 
  
  
  
  
    | 
8
9
10
11 | # File 'lib/glimr_api_client/available.rb', line 8
def call
  post
  self
end |