module Monzo::Client::FeedItems
Overview
Exposes methods for dealing with FeedItem
s as defined by the
Feed-items API documentation.
Direct including types
Defined in:
monzo/client/feed_items.crConstant Summary
-
TYPE =
"basic"
Instance Method Summary
-
#feed_item(account : Monzo::Account, url : String, params)
Creates a
FeedItem
that will link to the specified url when clicked in the phone app, for a specified account. -
#feed_item(account_id : String, url : String, params)
Creates a
FeedItem
that will link to the specified url when clicked in the phone app, for a specified account_id. -
#feed_item(account : Monzo::Account, params)
Creates a
FeedItem
to be displayed in the phone app for the specified account. -
#feed_item(account_id : String, params)
Creates a
FeedItem
to be displayed in the phone app for the specified account_id.
Instance Method Detail
Creates a FeedItem
that will link to the specified url when clicked in the phone app, for a specified
account.
account = client.accounts.first
client.feed_item(account, "https://www.github.com", {"GitHub Payment", "https://github.com/logo.png"}) # => true
Creates a FeedItem
that will link to the specified url when clicked in the phone app, for a specified
account_id.
Creates a FeedItem
to be displayed in the phone app for the specified account.
account = client.accounts.first
client.feed_item(account, {"GitHub Payment", "https://github.com/logo.png"}) # => true