Class: Iterable::MetadataTable
- Inherits:
-
ApiResource
- Object
- ApiResource
- Iterable::MetadataTable
- Defined in:
- lib/iterable/metadata_table.rb
Overview
Interact with /metadata/table API endpoints
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from ApiResource
Instance Method Summary collapse
- #add(key, value = {}) ⇒ Object
- #delete ⇒ Object
- #get(key) ⇒ Object
-
#initialize(name, conf = nil) ⇒ MetadataTable
constructor
A new instance of MetadataTable.
- #list_keys(next_marker = nil) ⇒ Object
- #remove(key) ⇒ Object
Methods inherited from ApiResource
default_config, #default_config
Constructor Details
#initialize(name, conf = nil) ⇒ MetadataTable
Returns a new instance of MetadataTable.
33 34 35 36 |
# File 'lib/iterable/metadata_table.rb', line 33 def initialize(name, conf = nil) @name = name super conf end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
17 18 19 |
# File 'lib/iterable/metadata_table.rb', line 17 def name @name end |
Instance Method Details
#add(key, value = {}) ⇒ Object
79 80 81 |
# File 'lib/iterable/metadata_table.rb', line 79 def add(key, value = {}) Iterable.request(conf, base_path(key)).put(value: value) end |
#delete ⇒ Object
58 59 60 |
# File 'lib/iterable/metadata_table.rb', line 58 def delete Iterable.request(conf, base_path).delete end |
#get(key) ⇒ Object
91 92 93 |
# File 'lib/iterable/metadata_table.rb', line 91 def get(key) Iterable.request(conf, base_path(key)).get end |