Class: Coalmine::VersionNotification
- Inherits:
-
Object
- Object
- Coalmine::VersionNotification
- Defined in:
- lib/coalmine/version_notification.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize ⇒ VersionNotification
constructor
A new instance of VersionNotification.
- #post_data ⇒ Object
- #resource_path ⇒ Object
Constructor Details
#initialize ⇒ VersionNotification
Returns a new instance of VersionNotification.
6 7 8 |
# File 'lib/coalmine/version_notification.rb', line 6 def initialize self.environment = Coalmine.config.environment end |
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author.
4 5 6 |
# File 'lib/coalmine/version_notification.rb', line 4 def @author end |
#environment ⇒ Object
Returns the value of attribute environment.
4 5 6 |
# File 'lib/coalmine/version_notification.rb', line 4 def environment @environment end |
#version ⇒ Object
Returns the value of attribute version.
4 5 6 |
# File 'lib/coalmine/version_notification.rb', line 4 def version @version end |
Instance Method Details
#post_data ⇒ Object
14 15 16 17 |
# File 'lib/coalmine/version_notification.rb', line 14 def post_data {:signature => Coalmine.config.signature, :environment => self.environment, :version => self.version, :author => self.} end |
#resource_path ⇒ Object
10 11 12 |
# File 'lib/coalmine/version_notification.rb', line 10 def resource_path "/versions/" end |