Class: GoogleDrive::Record
- Inherits:
-
Hash
- Object
- Hash
- GoogleDrive::Record
- Includes:
- Util
- Defined in:
- lib/google_drive/record.rb
Overview
DEPRECATED: Table and Record feeds are deprecated and they will not be available after March 2012.
Use GoogleDrive::Table#records to get GoogleDrive::Record objects.
Constant Summary
Constants included from Util
Util::DOCS_BASE_URL, Util::EXT_TO_CONTENT_TYPE
Instance Method Summary collapse
-
#initialize(session, entry) ⇒ Record
constructor
:nodoc:.
-
#inspect ⇒ Object
:nodoc:.
Methods included from Util
concat_url, encode_query, h, to_v3_url
Constructor Details
#initialize(session, entry) ⇒ Record
:nodoc:
17 18 19 20 21 22 |
# File 'lib/google_drive/record.rb', line 17 def initialize(session, entry) #:nodoc: @session = session entry.css("gs|field").each() do |field| self[field["name"]] = field.inner_text end end |
Instance Method Details
#inspect ⇒ Object
:nodoc:
24 25 26 27 |
# File 'lib/google_drive/record.rb', line 24 def inspect #:nodoc: content = self.map(){ |k, v| "%p => %p" % [k, v] }.join(", ") return "\#<%p:{%s}>" % [self.class, content] end |