Sha256: 40628c74d7daf6d4fd45c2612da92309a84d3bb69717e0bd7d9583635830ad98
Contents?: true
Size: 950 Bytes
Versions: 6
Compression:
Stored size: 950 Bytes
Contents
module Timber class CLI class API class Application DEVELOPMENT_ENVIRONMENT = "development".freeze TEST_ENVIRONMENT = "test".freeze HEROKU = "heroku".freeze attr_accessor :api_key, :environment, :framework_type, :heroku_drain_url, :name, :platform_type def initialize(attributes) @api_key = attributes.fetch("api_key") @environment = attributes.fetch("environment") @framework_type = attributes.fetch("framework_type") @heroku_drain_url = attributes.fetch("heroku_drain_url") @name = attributes.fetch("name") @platform_type = attributes.fetch("platform_type") end def development? environment == DEVELOPMENT_ENVIRONMENT end def test? environment == TEST_ENVIRONMENT end def heroku? platform_type == HEROKU end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems