class Escobar::Heroku::Coupling

Class representing a deployable environment

Attributes

app[R]
app_id[R]
client[R]
id[R]
stage[R]

Public Class Methods

new(client, coupling) click to toggle source
# File lib/escobar/heroku/coupling.rb, line 6
def initialize(client, coupling)
  @id     = coupling["id"]
  @stage  = coupling["stage"]
  @app_id = coupling["app"]["id"]
  @client = client
end

Public Instance Methods

name() click to toggle source
# File lib/escobar/heroku/coupling.rb, line 17
def name
  app && app.name
end
to_hash() click to toggle source
# File lib/escobar/heroku/coupling.rb, line 21
def to_hash
  {
    id: id,
    name: name,
    stage: stage,
    app_id: app_id
  }
end