Class: Tarpon::Request::Subscriber::Attribute
- Defined in:
- lib/tarpon/request/subscriber/attribute.rb
Constant Summary
Constants inherited from Base
Instance Method Summary collapse
-
#initialize(subscriber_path:, **opts) ⇒ Attribute
constructor
A new instance of Attribute.
- #update(**data) ⇒ Object
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 |