Method: Mutx::API::Input#initialize
- Defined in:
- lib/mutx/API/input.rb
#initialize(definition) ⇒ Input
Returns a new instance of Input.
7 8 9 10 11 12 13 14 15 |
# File 'lib/mutx/API/input.rb', line 7 def initialize definition Mutx::Support::Log.debug "definition in new => #{definition}" id = definition["_id"] || Mutx::Database::MongoConnector.generate_id @id = id @reference = definition["reference"] @name = definition["name"] @value = definition["value"] @created_at = Time.now.utc end |