Class: Fanforce
- Inherits:
-
Object
- Object
- Fanforce
- Defined in:
- lib/fanforce.rb,
lib/fanforce/_base.rb,
lib/fanforce/version.rb
Defined Under Namespace
Modules: DomainEnvironments, Domains, InternalUtils, Utils
Constant Summary collapse
- VERSION =
'0.21.0'
Class Method Summary collapse
Methods included from Domains
#api_domain, #api_domain_ssl, #app_domain, #apps_base_domain, #base_domain, #components_base_domain, #controller_domain, #default_short_domain, #developers_domain, #environ, #environment, #eye_domain, included, #signup_domain, #uranium_domain, #website_domain
Methods included from Utils
#curl_command, #decode_json, included, #is_blank?, #is_present?, #parse_url, #symbolize_keys, #to_query_string
Class Method Details
.env(&block) ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'lib/fanforce.rb', line 2 def self.env(&block) if !block.nil? @env = block elsif !@env.nil? @env.call else {} end end |