Skip to content

Commit

Permalink
stubbing out installations class
Browse files Browse the repository at this point in the history
  • Loading branch information
adelevie committed Mar 31, 2013
1 parent 28b4801 commit de6c3c7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lib/parse/installation.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
require 'parse/protocol'
require 'parse/client'
require 'parse/error'
require 'parse/object'

module Parse
class Installation
attr_accessor :device_type
attr_accessor :installation_id
attr_accessor :device_token
attr_accessor :badge
attr_accessor :time_zone
attr_accessor :channels

end
end
6 changes: 6 additions & 0 deletions lib/parse/protocol.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ module Protocol
ERROR_EXCEEDED_BURST_LIMIT = 155
ERROR_OBJECT_NOT_FOUND_FOR_GET = 101

INSTALLATIONS_PATH = "installations"

# URI Helpers
# ----------------------------------------

Expand Down Expand Up @@ -172,5 +174,9 @@ def Protocol.cloud_function_uri(function_name)
def Protocol.batch_request_uri
"/#{VERSION}/#{BATCH_REQUEST_URI}"
end

def Protocol.installations_uri
"/#{VERSION}/#{INSTALLATIONS_PATH}"
end
end
end

0 comments on commit de6c3c7

Please sign in to comment.