Class: Iterable::Metadata

Inherits:
ApiResource show all
Defined in:
lib/iterable/metadata.rb

Overview

Interact with /metadata API endpoints

Examples:

Creating metadata endpoint object

# With default config
templates = Iterable::Metadata.new
templates.get

# With custom config
conf = Iterable::Config.new(token: 'new-token')
templates = Iterable::Metadata.new(config)

Instance Attribute Summary

Attributes inherited from ApiResource

#conf

Instance Method Summary collapse

Methods inherited from ApiResource

#default_config, default_config, #initialize

Constructor Details

This class inherits a constructor from Iterable::ApiResource

Instance Method Details

#getIterable::Response

Get metadata

Returns:



20
21
22
# File 'lib/iterable/metadata.rb', line 20

def get
  Iterable.request(conf, '/metadata').get
end