Represents a status posted to Twitter by a Twitter user.

Methods
Included Modules
Public Class methods
attributes()

Used as factory method callback

     # File lib/twitter/model.rb, line 227
227:       def attributes; @@ATTRIBUTES; end
create(params)

Creates a new status for the authenticated user of the given client context.

You MUST include a valid/authenticated client context in the given params argument.

For example:

 status = Twitter::Status.create(
   :text => 'I am shopping for flip flops',
   :client => client)

An ArgumentError will be raised if no valid client context is given in the params Hash. For example,

 status = Twitter::Status.create(:text => 'I am shopping for flip flops')

The above line of code will raise an ArgumentError.

The same is true when you do not provide a :text key-value pair in the params argument given.

The Twitter::Status object returned after the status successfully updates on the Twitter server side is returned from this method.

     # File lib/twitter/model.rb, line 256
256:       def create(params)
257:         client, text = params[:client], params[:text]
258:         raise ArgumentError, 'Valid client context must be provided' unless client.is_a?(Twitter::Client)
259:         raise ArgumentError, 'Must provide text for the status to update' unless text.is_a?(String)
260:         client.status(:post, text)
261:       end
find(id, client)

Returns status model object with given status using the configuration and credentials of the client object passed in.

     # File lib/twitter/model.rb, line 231
231:       def find(id, client)
232:         client.status(:get, id)
233:       end
Protected Instance methods
init()

Constructor callback

     # File lib/twitter/model.rb, line 266
266:       def init
267:         @user = User.new(@user) if @user.is_a?(Hash)
268:         @created_at = Time.parse(@created_at) if @created_at.is_a?(String)
269:       end