Class: SparkApi::Models::AccountRoster

Inherits:
Account show all
Defined in:
lib/spark_api/models/account_roster.rb

Constant Summary

Constants inherited from Account

SparkApi::Models::Account::SUBELEMENTS

Constants included from Paginate

Paginate::DEFAULT_PAGE_SIZE

Instance Attribute Summary

Attributes inherited from Base

#attributes, #errors, #parent

Class Method Summary collapse

Methods inherited from Account

by_office, #initialize, #logo, my, #my_account?, #primary_img, #save, #save!

Methods included from Finders

#find, #find_one, #first, #last

Methods inherited from Base

connection, #connection, count, element_name, element_name=, first, get, #id, #initialize, #load, #method_missing, #parse_id, path, #path, #persisted?, prefix, prefix=, #resource_pluralized, #resource_uri, #respond_to?, #to_param, #to_partial_path

Methods included from Paginate

#collect, #paginate, #per_page

Methods included from Dirty

#changed, #changed?, #changed_attributes, #changes, #dirty_attributes, #previous_changes

Constructor Details

This class inherits a constructor from SparkApi::Models::Account

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class SparkApi::Models::Base

Class Method Details

.roster(account_id, arguments = {}) ⇒ Object



4
5
6
# File 'lib/spark_api/models/account_roster.rb', line 4

def self.roster(, arguments={})
  collect(connection.get("/accounts/#{}/roster", arguments)).first
end