Class: Playapi::Snapchatter
- Defined in:
- lib/playapi/snapchatter.rb
Instance Attribute Summary collapse
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Attributes inherited from Feature
#attrs, #campaign_id, #default_points, #id, #live, #name
Instance Method Summary collapse
Methods inherited from Feature
#campaign, create, #destroy, destroy, find_by_facet, get, #interactions, list, #push, update
Methods included from Utils
Methods inherited from Identity
#==, fetch, #id, #initialize, store
Methods inherited from Base
#[], attr_reader, #attrs, fetch, fetch_or_new, from_response, identity_map, #initialize, store, #update
Constructor Details
This class inherits a constructor from Playapi::Identity
Instance Attribute Details
#password ⇒ Object (readonly)
Returns the value of attribute password.
3 4 5 |
# File 'lib/playapi/snapchatter.rb', line 3 def password @password end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
3 4 5 |
# File 'lib/playapi/snapchatter.rb', line 3 def username @username end |
Instance Method Details
#send_snapchat(names = [], url = '', opts = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/playapi/snapchatter.rb', line 5 def send_snapchat(names=[], url='', opts={}) # awaiting finalization of end point url = "/api/v2/snapchatter/#{id}/send_snapchat" self.class.send(:get_objects, :post, "results", opts.merge!(usernames: names, source: url)) end |