Class: Travis::Client::Request
- Inherits:
 - 
      WeakEntity
      
        
- Object
 - Entity
 - WeakEntity
 - Travis::Client::Request
 
 
- Defined in:
 - lib/travis/client/request.rb
 
Constant Summary
Constants inherited from Entity
Instance Attribute Summary collapse
- 
  
    
      #base_commit  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute base_commit.
 - 
  
    
      #branch  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute branch.
 - 
  
    
      #commit_id  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute commit_id.
 - 
  
    
      #created_at  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute created_at.
 - 
  
    
      #event_type  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute event_type.
 - 
  
    
      #head_commit  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute head_commit.
 - 
  
    
      #message  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute message.
 - 
  
    
      #owner_id  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute owner_id.
 - 
  
    
      #owner_type  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute owner_type.
 - 
  
    
      #pull_request  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute pull_request.
 - 
  
    
      #pull_request_number  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute pull_request_number.
 - 
  
    
      #pull_request_title  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute pull_request_title.
 - 
  
    
      #repository  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute repository.
 - 
  
    
      #repository_id  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute repository_id.
 - 
  
    
      #result  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute result.
 - 
  
    
      #tag  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute tag.
 
Attributes inherited from Entity
#attributes, #curry, #id, #session
Instance Method Summary collapse
Methods inherited from WeakEntity
Methods included from NotLoadable
Methods inherited from Entity
#[], #[]=, aka, #attribute_names, attributes, base_path, #cancelable?, cast_id, #complete?, has, has_singleton, id?, id_field, #include?, #initialize, #inspect, inspect_info, #load, many, #missing?, one, preloadable, preloadable?, relations, #relations, #reload, #restartable?, subclass_for, subclasses, time, #to_h, #update_attributes, weak?
Constructor Details
This class inherits a constructor from Travis::Client::Entity
Instance Attribute Details
#base_commit ⇒ Object (readonly)
Returns the value of attribute base_commit.
      1 2 3  | 
    
      # File 'lib/travis/client/request.rb', line 1 def base_commit @base_commit end  | 
  
#branch ⇒ Object (readonly)
Returns the value of attribute branch.
      1 2 3  | 
    
      # File 'lib/travis/client/request.rb', line 1 def branch @branch end  | 
  
#commit_id ⇒ Object (readonly)
Returns the value of attribute commit_id.
      1 2 3  | 
    
      # File 'lib/travis/client/request.rb', line 1 def commit_id @commit_id end  | 
  
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
      1 2 3  | 
    
      # File 'lib/travis/client/request.rb', line 1 def created_at @created_at end  | 
  
#event_type ⇒ Object (readonly)
Returns the value of attribute event_type.
      1 2 3  | 
    
      # File 'lib/travis/client/request.rb', line 1 def event_type @event_type end  | 
  
#head_commit ⇒ Object (readonly)
Returns the value of attribute head_commit.
      1 2 3  | 
    
      # File 'lib/travis/client/request.rb', line 1 def head_commit @head_commit end  | 
  
#message ⇒ Object (readonly)
Returns the value of attribute message.
      1 2 3  | 
    
      # File 'lib/travis/client/request.rb', line 1 def @message end  | 
  
#owner_id ⇒ Object (readonly)
Returns the value of attribute owner_id.
      1 2 3  | 
    
      # File 'lib/travis/client/request.rb', line 1 def owner_id @owner_id end  | 
  
#owner_type ⇒ Object (readonly)
Returns the value of attribute owner_type.
      1 2 3  | 
    
      # File 'lib/travis/client/request.rb', line 1 def owner_type @owner_type end  | 
  
#pull_request ⇒ Object (readonly)
Returns the value of attribute pull_request.
      1 2 3  | 
    
      # File 'lib/travis/client/request.rb', line 1 def pull_request @pull_request end  | 
  
#pull_request_number ⇒ Object (readonly)
Returns the value of attribute pull_request_number.
      1 2 3  | 
    
      # File 'lib/travis/client/request.rb', line 1 def pull_request_number @pull_request_number end  | 
  
#pull_request_title ⇒ Object (readonly)
Returns the value of attribute pull_request_title.
      1 2 3  | 
    
      # File 'lib/travis/client/request.rb', line 1 def pull_request_title @pull_request_title end  | 
  
#repository ⇒ Object (readonly)
Returns the value of attribute repository.
      1 2 3  | 
    
      # File 'lib/travis/client/request.rb', line 1 def repository @repository end  | 
  
#repository_id ⇒ Object (readonly)
Returns the value of attribute repository_id.
      1 2 3  | 
    
      # File 'lib/travis/client/request.rb', line 1 def repository_id @repository_id end  | 
  
#result ⇒ Object (readonly)
Returns the value of attribute result.
      1 2 3  | 
    
      # File 'lib/travis/client/request.rb', line 1 def result @result end  | 
  
#tag ⇒ Object (readonly)
Returns the value of attribute tag.
      1 2 3  | 
    
      # File 'lib/travis/client/request.rb', line 1 def tag @tag end  | 
  
Instance Method Details
#accepted? ⇒ Boolean
      20 21 22  | 
    
      # File 'lib/travis/client/request.rb', line 20 def accepted? result == 'accepted' end  | 
  
#inspect_info ⇒ Object
      28 29 30 31 32 33  | 
    
      # File 'lib/travis/client/request.rb', line 28 def inspect_info [ repository && repository.slug, event_type, branch || pull_request_number, result ].compact.join(" ") end  | 
  
#owner ⇒ Object
      16 17 18  | 
    
      # File 'lib/travis/client/request.rb', line 16 def owner repository.owner end  | 
  
#rejected? ⇒ Boolean
      24 25 26  | 
    
      # File 'lib/travis/client/request.rb', line 24 def rejected? result == 'rejected' end  |