Class: RubyRedtail::User::Settings
- Inherits:
-
Object
- Object
- RubyRedtail::User::Settings
- Defined in:
- lib/ruby-redtail/user/settings.rb
Instance Method Summary collapse
-
#activitytypes ⇒ Object
Activity Type List Fetch returns a list of activity types with the corresponding Activity Code.
-
#csl(deleted = false) ⇒ Object
Contact Status List Fetch returns a list of contact statuses with the corresponding Contact Status Code.
-
#initialize(api_hash) ⇒ Settings
constructor
A new instance of Settings.
-
#mccl(deleted = false) ⇒ Object
Contact Category List Fetch returns a list of Contact Categories with the corresponding Contact Category Code optional Parameter: deleted* 0 shows current records, 1 shows deleted records.
-
#mcl ⇒ Object
Master Category List Fetch returns a Master Category List with the corresponding MCL Code.
-
#mcsl(deleted = false) ⇒ Object
Contact Source List Fetch returns a list of Contact Sources with the corresponding Contact Source Code optional Parameter: deleted* 0 shows current records, 1 shows deleted records.
-
#sal(deleted = false) ⇒ Object
Servicing Advisor List Fetch returns a list of Servicing Advisors with the corresponding Servicing Advisor Code.
-
#salutations ⇒ Object
Salutation List Fetch returns a list of Salutations with the corresponding Salutation Code.
-
#tag_groups ⇒ Object
Tag Groups Fetch returns a list of Tag Groups for a user’s Database.
-
#udf ⇒ Object
User-Defined Fields Fetch returns a list of User-defined fields with the corresponding UDF Code.
-
#wal(deleted = false) ⇒ Object
Writing Advisor List Fetch returns a list of Writing Advisors with the corresponding Writing Advisor Code.
Constructor Details
#initialize(api_hash) ⇒ Settings
Returns a new instance of Settings.
7 8 9 |
# File 'lib/ruby-redtail/user/settings.rb', line 7 def initialize api_hash @api_hash = api_hash end |
Instance Method Details
#activitytypes ⇒ Object
Activity Type List Fetch returns a list of activity types with the corresponding Activity Code
13 14 15 |
# File 'lib/ruby-redtail/user/settings.rb', line 13 def activitytypes build_settings_array RubyRedtail::Query.run("settings/activitytypes", @api_hash, "GET") end |
#csl(deleted = false) ⇒ Object
Contact Status List Fetch returns a list of contact statuses with the corresponding Contact Status Code. optional Parameter: deleted* 0 shows current records, 1 shows deleted records
45 46 47 |
# File 'lib/ruby-redtail/user/settings.rb', line 45 def csl(deleted=false) build_settings_array RubyRedtail::Query.run("settings/csl?deleted=#{deleted ? 1 : 0}", @api_hash, "GET") end |
#mccl(deleted = false) ⇒ Object
Contact Category List Fetch returns a list of Contact Categories with the corresponding Contact Category Code optional Parameter: deleted* 0 shows current records, 1 shows deleted records
53 54 55 |
# File 'lib/ruby-redtail/user/settings.rb', line 53 def mccl(deleted=false) build_settings_array RubyRedtail::Query.run("settings/mccl?deleted=#{deleted ? 1 : 0}", @api_hash, "GET") end |
#mcl ⇒ Object
Master Category List Fetch returns a Master Category List with the corresponding MCL Code.
19 20 21 |
# File 'lib/ruby-redtail/user/settings.rb', line 19 def mcl build_settings_array RubyRedtail::Query.run("settings/mcl", @api_hash, "GET") end |
#mcsl(deleted = false) ⇒ Object
Contact Source List Fetch returns a list of Contact Sources with the corresponding Contact Source Code optional Parameter: deleted* 0 shows current records, 1 shows deleted records
61 62 63 |
# File 'lib/ruby-redtail/user/settings.rb', line 61 def mcsl(deleted=false) build_settings_array RubyRedtail::Query.run("settings/mcsl?deleted=#{deleted ? 1 : 0}", @api_hash, "GET") end |
#sal(deleted = false) ⇒ Object
Servicing Advisor List Fetch returns a list of Servicing Advisors with the corresponding Servicing Advisor Code. optional Parameter: deleted* 0 shows current records, 1 shows deleted records
69 70 71 |
# File 'lib/ruby-redtail/user/settings.rb', line 69 def sal(deleted=false) build_settings_array RubyRedtail::Query.run("settings/sal?deleted=#{deleted ? 1 : 0}", @api_hash, "GET") end |
#salutations ⇒ Object
Salutation List Fetch returns a list of Salutations with the corresponding Salutation Code
25 26 27 |
# File 'lib/ruby-redtail/user/settings.rb', line 25 def salutations build_settings_array RubyRedtail::Query.run("settings/salutations", @api_hash, "GET") end |
#tag_groups ⇒ Object
Tag Groups Fetch returns a list of Tag Groups for a user’s Database.
37 38 39 |
# File 'lib/ruby-redtail/user/settings.rb', line 37 def tag_groups build_tag_groups_array RubyRedtail::Query.run("settings/taggroups", @api_hash, "GET") end |
#udf ⇒ Object
User-Defined Fields Fetch returns a list of User-defined fields with the corresponding UDF Code.
31 32 33 |
# File 'lib/ruby-redtail/user/settings.rb', line 31 def udf build_settings_array RubyRedtail::Query.run("settings/udf", @api_hash, "GET") end |
#wal(deleted = false) ⇒ Object
Writing Advisor List Fetch returns a list of Writing Advisors with the corresponding Writing Advisor Code. optional Parameter: deleted* 0 shows current records, 1 shows deleted records
77 78 79 |
# File 'lib/ruby-redtail/user/settings.rb', line 77 def wal(deleted=false) build_settings_array RubyRedtail::Query.run("settings/wal?deleted=#{deleted ? 1 : 0}", @api_hash, "GET") end |