Module: Quandl::Sandbox::Server::Attributes
- Extended by:
- ActiveSupport::Concern
- Included in:
- Quandl::Sandbox::Server
- Defined in:
- lib/quandl/sandbox/server/attributes.rb
Instance Method Summary collapse
Instance Method Details
#initialize(*args) ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'lib/quandl/sandbox/server/attributes.rb', line 24 def initialize(*args) # is a new record self.new_record = true # default attributes self.attributes = Quandl::Sandbox.configuration.to_h # onwards super end |
#tags ⇒ Object
37 38 39 40 41 42 43 44 45 |
# File 'lib/quandl/sandbox/server/attributes.rb', line 37 def { Name: node_name, cluster_type: 'quandl_sandbox', instance_type: 'quandl_ugc_worker', instance_environment: environment, vpc: ssh_gateway.present? ? 'true' : 'false' } end |
#uid ⇒ Object
33 34 35 |
# File 'lib/quandl/sandbox/server/attributes.rb', line 33 def uid @uid ||= SecureRandom.hex(6) end |