Class: GoogleAppsApi::CalendarResources::Api
- Defined in:
- lib/google_apps_api/calendar_resources.rb
Instance Attribute Summary collapse
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Attributes inherited from BaseApi
Instance Method Summary collapse
-
#initialize(*args) ⇒ Api
constructor
A new instance of Api.
Methods inherited from BaseApi
Constructor Details
#initialize(*args) ⇒ Api
Returns a new instance of Api.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/google_apps_api/calendar_resources.rb', line 11 def initialize(*args) begin action_list = { :domain_login => [:post, ":auth:/accounts/ClientLogin"], :retrieve_all_resources => [:get, ":feed_basic:/"], } end = args. domain = [:domain] .merge!(:action_hash => action_list, :auth => "https://www.google.com", :feed => "https://apps-apis.google.com", :service => "apps") [:feed_basic] = [:feed]+ "/a/feeds/calendar/resource/2.0/#{domain}" super() end |
Instance Attribute Details
#token ⇒ Object (readonly)
Returns the value of attribute token.
9 10 11 |
# File 'lib/google_apps_api/calendar_resources.rb', line 9 def token @token end |