Class: Touchpass::Rp::Device
- Inherits:
-
Object
- Object
- Touchpass::Rp::Device
- Includes:
- HTTParty
- Defined in:
- lib/touchpass/rp/device.rb
Instance Method Summary collapse
- #get_all(user) ⇒ Object
-
#initialize ⇒ Device
constructor
debug_output.
Constructor Details
Instance Method Details
#get_all(user) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/touchpass/rp/device.rb', line 11 def get_all(user) = { :body => {}, :headers => { Touchpass::Client::API_KEY_HEADER => Touchpass.api_key } } response = self.class.get("/#{user}/devices.json", ) tp_response = Touchpass::Rp::Response.new(response) tp_response.response = tp_response['devices'] || [] tp_response end |