Class: IngestAttribute

Inherits:
Object
  • Object
show all
Defined in:
lib/netuitive/ingest_attribute.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, value) ⇒ IngestAttribute

Returns a new instance of IngestAttribute.



3
4
5
6
# File 'lib/netuitive/ingest_attribute.rb', line 3

def initialize(name, value)
    @name=name
    @value=value
end

Instance Method Details

#to_json(options = {}) ⇒ Object



7
8
9
# File 'lib/netuitive/ingest_attribute.rb', line 7

def to_json(options = {})
    {'name' => @name, 'value' => @value}.to_json
end