Class: Coalmine::VersionNotification

Inherits:
Object
  • Object
show all
Defined in:
lib/coalmine/version_notification.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeVersionNotification

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

#authorObject

Returns the value of attribute author.



4
5
6
# File 'lib/coalmine/version_notification.rb', line 4

def author
  @author
end

#environmentObject

Returns the value of attribute environment.



4
5
6
# File 'lib/coalmine/version_notification.rb', line 4

def environment
  @environment
end

#versionObject

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_dataObject



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.author}
end

#resource_pathObject



10
11
12
# File 'lib/coalmine/version_notification.rb', line 10

def resource_path
  "/versions/"
end