Class: Tarpon::Request::Subscriber::Attribute

Inherits:
Base
  • Object
show all
Defined in:
lib/tarpon/request/subscriber/attribute.rb

Constant Summary

Constants inherited from Base

Base::DEFAULT_HEADERS

Instance Method Summary collapse

Constructor Details

#initialize(subscriber_path:, **opts) ⇒ Attribute

Returns a new instance of Attribute.



7
8
9
10
# File 'lib/tarpon/request/subscriber/attribute.rb', line 7

def initialize(subscriber_path:, **opts)
  super(**opts)
  @subscriber_path = subscriber_path
end

Instance Method Details

#update(**data) ⇒ Object



12
13
14
15
16
17
# File 'lib/tarpon/request/subscriber/attribute.rb', line 12

def update(**data)
  body = {
    attributes: data
  }
  perform(method: :post, path: path, key: :public, body: body)
end