Class: Teambox::TeamboxData

Inherits:
Resource show all
Defined in:
lib/teambox-client/models/teambox_data.rb

Instance Attribute Summary

Attributes inherited from Resource

#data, #list, #references

Instance Method Summary collapse

Methods inherited from Resource

#created_at, #destroy, #id, #initialize, #inspect, #method_missing, #next, #prev, #reload, #save, #updated_at

Methods included from ReferenceList

#generate_references, #get_or_make_reference, #get_or_make_references, #get_reference, #set_reference

Constructor Details

This class inherits a constructor from Teambox::Resource

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Teambox::Resource

Instance Method Details

#processed_atObject

Time this data was processed



8
9
10
# File 'lib/teambox-client/models/teambox_data.rb', line 8

def processed_at
  @data.has_key?('processed_at') ? Time.parse(data['processed_at']) : nil
end

#urlObject

:nodoc:



12
13
14
# File 'lib/teambox-client/models/teambox_data.rb', line 12

def url #:nodoc:
  nil
end

#userObject



3
4
5
# File 'lib/teambox-client/models/teambox_data.rb', line 3

def user
  get_or_make_reference('User', @data, 'user_id')
end