Module: Officepod
- Defined in:
- lib/officepod.rb,
lib/officepod/file.rb,
lib/officepod/room.rb,
lib/officepod/helper.rb,
lib/officepod/storage.rb,
lib/officepod/version.rb,
lib/officepod/bookmark.rb,
lib/officepod/exception.rb,
lib/officepod/authentication.rb
Defined Under Namespace
Modules: Authentication, Bookmark, Exception, File, Helper, InstanceMethods, Room, Storage
Constant Summary collapse
- VERSION =
"0.1.5"
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/officepod.rb', line 2 def self.included(base) base.send :include, InstanceMethods base.instance_eval do include HTTParty include Authentication include Storage include Bookmark include File include Room include Helper base_uri "http://g4m.lalaworks.com" end base.class_eval do def initialize @END_POINT = "/server/request.php" @options = { command: "", headers: { "User-Agent" => "Gate4Mobile", "Content-Type" => "application/x-www-form-urlencoded", "Accept" => "application/json", "Cookie" => "" }, body: {} } end end end |