Class: Travis::Client::Annotation

Inherits:
Entity
  • Object
show all
Includes:
NotLoadable, States
Defined in:
lib/travis/client/annotation.rb

Constant Summary

Constants included from States

States::STATES

Constants inherited from Entity

Entity::MAP

Instance Attribute Summary collapse

Attributes inherited from Entity

#attributes, #curry, #id, #session

Instance Method Summary collapse

Methods included from NotLoadable

#complete?, #missing?

Methods included from States

#canceled?, #color, #created?, #errored?, #failed?, #finished?, #green?, #passed?, #pending?, #queued?, #ready?, #received?, #red?, #running?, #started?, #unsuccessful?, #yellow?

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

#jobObject (readonly)

Returns the value of attribute job.



1
2
3
# File 'lib/travis/client/annotation.rb', line 1

def job
  @job
end

Instance Method Details

#inspect_infoObject



16
17
18
# File 'lib/travis/client/annotation.rb', line 16

def inspect_info
  "#{provider_name}: #{status}"
end