Class: IngestAttribute
- Inherits:
-
Object
- Object
- IngestAttribute
- Defined in:
- lib/netuitive/ingest_attribute.rb
Instance Method Summary collapse
-
#initialize(name, value) ⇒ IngestAttribute
constructor
A new instance of IngestAttribute.
- #to_json(options = {}) ⇒ Object
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( = {}) {'name' => @name, 'value' => @value}.to_json end |