Class: ConnectWise::CustomReport
- Inherits:
-
Object
- Object
- ConnectWise::CustomReport
- Defined in:
- lib/connectwise-ruby-sdk/models/custom_report.rb
Defined Under Namespace
Classes: EnumAttributeValidator
Instance Attribute Summary collapse
-
#_info ⇒ Object
Metadata of the entity.
-
#_module ⇒ Object
The Module Name.
-
#agreement_flag ⇒ Object
Returns the value of attribute agreement_flag.
-
#agreement_override ⇒ Object
Returns the value of attribute agreement_override.
-
#agreement_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Agreement parameter.
-
#agreement_type_flag ⇒ Object
Returns the value of attribute agreement_type_flag.
-
#agreement_type_override ⇒ Object
Returns the value of attribute agreement_type_override.
-
#agreement_type_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Agreement Type parameter.
-
#company_flag ⇒ Object
Returns the value of attribute company_flag.
-
#company_override ⇒ Object
Returns the value of attribute company_override.
-
#company_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Company parameter.
-
#department_default_flag ⇒ Object
Returns the value of attribute department_default_flag.
-
#department_flag ⇒ Object
Returns the value of attribute department_flag.
-
#department_override ⇒ Object
Returns the value of attribute department_override.
-
#department_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Department parameter.
-
#description ⇒ Object
Returns the value of attribute description.
-
#end_date_flag ⇒ Object
Returns the value of attribute end_date_flag.
-
#end_date_override ⇒ Object
Returns the value of attribute end_date_override.
-
#end_date_param_id ⇒ Object
Parameter unique identifier for the Custom Report's End Date parameter.
-
#generated_flag ⇒ Object
Returns the value of attribute generated_flag.
-
#id ⇒ Object
Returns the value of attribute id.
-
#invoice_flag ⇒ Object
Returns the value of attribute invoice_flag.
-
#invoice_override ⇒ Object
Returns the value of attribute invoice_override.
-
#invoice_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Invoice Type parameter.
-
#location_default_flag ⇒ Object
Returns the value of attribute location_default_flag.
-
#location_flag ⇒ Object
Returns the value of attribute location_flag.
-
#location_override ⇒ Object
Returns the value of attribute location_override.
-
#location_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Location parameter.
-
#marketing_campaign_flag ⇒ Object
Returns the value of attribute marketing_campaign_flag.
-
#marketing_campaign_override ⇒ Object
Returns the value of attribute marketing_campaign_override.
-
#marketing_campaign_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Marketing Campaign parameter.
-
#member_flag ⇒ Object
Returns the value of attribute member_flag.
-
#member_override ⇒ Object
Returns the value of attribute member_override.
-
#member_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Member parameter.
-
#name ⇒ Object
Returns the value of attribute name.
-
#opp_type_flag ⇒ Object
Returns the value of attribute opp_type_flag.
-
#opp_type_override ⇒ Object
Returns the value of attribute opp_type_override.
-
#opp_type_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Opportunity Type parameter.
-
#opportunity_flag ⇒ Object
Returns the value of attribute opportunity_flag.
-
#opportunity_override ⇒ Object
Returns the value of attribute opportunity_override.
-
#opportunity_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Opportunity parameter.
-
#parameter_name_separator ⇒ Object
Returns the value of attribute parameter_name_separator.
-
#parameter_prefix ⇒ Object
Returns the value of attribute parameter_prefix.
-
#parameter_separator ⇒ Object
Returns the value of attribute parameter_separator.
-
#parameter_suffix ⇒ Object
Returns the value of attribute parameter_suffix.
-
#project_flag ⇒ Object
Returns the value of attribute project_flag.
-
#project_override ⇒ Object
Returns the value of attribute project_override.
-
#project_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Project parameter.
-
#project_type_flag ⇒ Object
Returns the value of attribute project_type_flag.
-
#project_type_override ⇒ Object
Returns the value of attribute project_type_override.
-
#project_type_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Project Type parameter.
-
#report_link ⇒ Object
Returns the value of attribute report_link.
-
#service_board_default_flag ⇒ Object
Returns the value of attribute service_board_default_flag.
-
#service_board_flag ⇒ Object
Returns the value of attribute service_board_flag.
-
#service_board_override ⇒ Object
Returns the value of attribute service_board_override.
-
#service_board_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Service Board parameter.
-
#service_status_flag ⇒ Object
Returns the value of attribute service_status_flag.
-
#service_status_override ⇒ Object
Returns the value of attribute service_status_override.
-
#service_status_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Service Status parameter.
-
#service_type_flag ⇒ Object
Returns the value of attribute service_type_flag.
-
#service_type_override ⇒ Object
Returns the value of attribute service_type_override.
-
#service_type_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Service Type parameter.
-
#start_date_flag ⇒ Object
Returns the value of attribute start_date_flag.
-
#start_date_override ⇒ Object
Returns the value of attribute start_date_override.
-
#start_date_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Start Date parameter.
-
#territory_default_flag ⇒ Object
Returns the value of attribute territory_default_flag.
-
#territory_flag ⇒ Object
Returns the value of attribute territory_flag.
-
#territory_override ⇒ Object
Returns the value of attribute territory_override.
-
#territory_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Terriroty parameter.
-
#work_role_flag ⇒ Object
Returns the value of attribute work_role_flag.
-
#work_role_override ⇒ Object
Returns the value of attribute work_role_override.
-
#work_role_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Work Role parameter.
-
#work_type_flag ⇒ Object
Returns the value of attribute work_type_flag.
-
#work_type_override ⇒ Object
Returns the value of attribute work_type_override.
-
#work_type_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Work Type parameter.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ CustomReport
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ CustomReport
Initializes the object
365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 365 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'id') self.id = attributes[:'id'] end if attributes.has_key?(:'reportLink') self.report_link = attributes[:'reportLink'] end if attributes.has_key?(:'name') self.name = attributes[:'name'] end if attributes.has_key?(:'module') self._module = attributes[:'module'] end if attributes.has_key?(:'description') self.description = attributes[:'description'] end if attributes.has_key?(:'generatedFlag') self.generated_flag = attributes[:'generatedFlag'] end if attributes.has_key?(:'parameterPrefix') self.parameter_prefix = attributes[:'parameterPrefix'] end if attributes.has_key?(:'parameterSeparator') self.parameter_separator = attributes[:'parameterSeparator'] end if attributes.has_key?(:'parameterNameSeparator') self.parameter_name_separator = attributes[:'parameterNameSeparator'] end if attributes.has_key?(:'parameterSuffix') self.parameter_suffix = attributes[:'parameterSuffix'] end if attributes.has_key?(:'locationFlag') self.location_flag = attributes[:'locationFlag'] end if attributes.has_key?(:'locationParamId') self.location_param_id = attributes[:'locationParamId'] end if attributes.has_key?(:'locationDefaultFlag') self.location_default_flag = attributes[:'locationDefaultFlag'] end if attributes.has_key?(:'locationOverride') self.location_override = attributes[:'locationOverride'] end if attributes.has_key?(:'departmentFlag') self.department_flag = attributes[:'departmentFlag'] end if attributes.has_key?(:'departmentParamId') self.department_param_id = attributes[:'departmentParamId'] end if attributes.has_key?(:'departmentDefaultFlag') self.department_default_flag = attributes[:'departmentDefaultFlag'] end if attributes.has_key?(:'departmentOverride') self.department_override = attributes[:'departmentOverride'] end if attributes.has_key?(:'territoryFlag') self.territory_flag = attributes[:'territoryFlag'] end if attributes.has_key?(:'territoryParamId') self.territory_param_id = attributes[:'territoryParamId'] end if attributes.has_key?(:'territoryDefaultFlag') self.territory_default_flag = attributes[:'territoryDefaultFlag'] end if attributes.has_key?(:'territoryOverride') self.territory_override = attributes[:'territoryOverride'] end if attributes.has_key?(:'companyFlag') self.company_flag = attributes[:'companyFlag'] end if attributes.has_key?(:'companyParamId') self.company_param_id = attributes[:'companyParamId'] end if attributes.has_key?(:'companyOverride') self.company_override = attributes[:'companyOverride'] end if attributes.has_key?(:'memberFlag') self.member_flag = attributes[:'memberFlag'] end if attributes.has_key?(:'memberParamId') self.member_param_id = attributes[:'memberParamId'] end if attributes.has_key?(:'memberOverride') self.member_override = attributes[:'memberOverride'] end if attributes.has_key?(:'startDateFlag') self.start_date_flag = attributes[:'startDateFlag'] end if attributes.has_key?(:'startDateParamId') self.start_date_param_id = attributes[:'startDateParamId'] end if attributes.has_key?(:'startDateOverride') self.start_date_override = attributes[:'startDateOverride'] end if attributes.has_key?(:'endDateFlag') self.end_date_flag = attributes[:'endDateFlag'] end if attributes.has_key?(:'endDateParamId') self.end_date_param_id = attributes[:'endDateParamId'] end if attributes.has_key?(:'endDateOverride') self.end_date_override = attributes[:'endDateOverride'] end if attributes.has_key?(:'oppTypeFlag') self.opp_type_flag = attributes[:'oppTypeFlag'] end if attributes.has_key?(:'oppTypeParamId') self.opp_type_param_id = attributes[:'oppTypeParamId'] end if attributes.has_key?(:'oppTypeOverride') self.opp_type_override = attributes[:'oppTypeOverride'] end if attributes.has_key?(:'opportunityFlag') self.opportunity_flag = attributes[:'opportunityFlag'] end if attributes.has_key?(:'opportunityParamId') self.opportunity_param_id = attributes[:'opportunityParamId'] end if attributes.has_key?(:'opportunityOverride') self.opportunity_override = attributes[:'opportunityOverride'] end if attributes.has_key?(:'marketingCampaignFlag') self.marketing_campaign_flag = attributes[:'marketingCampaignFlag'] end if attributes.has_key?(:'marketingCampaignParamId') self.marketing_campaign_param_id = attributes[:'marketingCampaignParamId'] end if attributes.has_key?(:'marketingCampaignOverride') self.marketing_campaign_override = attributes[:'marketingCampaignOverride'] end if attributes.has_key?(:'serviceBoardFlag') self.service_board_flag = attributes[:'serviceBoardFlag'] end if attributes.has_key?(:'serviceBoardParamId') self.service_board_param_id = attributes[:'serviceBoardParamId'] end if attributes.has_key?(:'serviceBoardDefaultFlag') self.service_board_default_flag = attributes[:'serviceBoardDefaultFlag'] end if attributes.has_key?(:'serviceBoardOverride') self.service_board_override = attributes[:'serviceBoardOverride'] end if attributes.has_key?(:'serviceTypeFlag') self.service_type_flag = attributes[:'serviceTypeFlag'] end if attributes.has_key?(:'serviceTypeParamId') self.service_type_param_id = attributes[:'serviceTypeParamId'] end if attributes.has_key?(:'serviceTypeOverride') self.service_type_override = attributes[:'serviceTypeOverride'] end if attributes.has_key?(:'serviceStatusFlag') self.service_status_flag = attributes[:'serviceStatusFlag'] end if attributes.has_key?(:'serviceStatusParamId') self.service_status_param_id = attributes[:'serviceStatusParamId'] end if attributes.has_key?(:'serviceStatusOverride') self.service_status_override = attributes[:'serviceStatusOverride'] end if attributes.has_key?(:'agreementTypeFlag') self.agreement_type_flag = attributes[:'agreementTypeFlag'] end if attributes.has_key?(:'agreementTypeParamId') self.agreement_type_param_id = attributes[:'agreementTypeParamId'] end if attributes.has_key?(:'agreementTypeOverride') self.agreement_type_override = attributes[:'agreementTypeOverride'] end if attributes.has_key?(:'agreementFlag') self.agreement_flag = attributes[:'agreementFlag'] end if attributes.has_key?(:'agreementParamId') self.agreement_param_id = attributes[:'agreementParamId'] end if attributes.has_key?(:'agreementOverride') self.agreement_override = attributes[:'agreementOverride'] end if attributes.has_key?(:'projectTypeFlag') self.project_type_flag = attributes[:'projectTypeFlag'] end if attributes.has_key?(:'projectTypeParamId') self.project_type_param_id = attributes[:'projectTypeParamId'] end if attributes.has_key?(:'projectTypeOverride') self.project_type_override = attributes[:'projectTypeOverride'] end if attributes.has_key?(:'projectFlag') self.project_flag = attributes[:'projectFlag'] end if attributes.has_key?(:'projectParamId') self.project_param_id = attributes[:'projectParamId'] end if attributes.has_key?(:'projectOverride') self.project_override = attributes[:'projectOverride'] end if attributes.has_key?(:'workRoleFlag') self.work_role_flag = attributes[:'workRoleFlag'] end if attributes.has_key?(:'workRoleParamId') self.work_role_param_id = attributes[:'workRoleParamId'] end if attributes.has_key?(:'workRoleOverride') self.work_role_override = attributes[:'workRoleOverride'] end if attributes.has_key?(:'workTypeFlag') self.work_type_flag = attributes[:'workTypeFlag'] end if attributes.has_key?(:'workTypeParamId') self.work_type_param_id = attributes[:'workTypeParamId'] end if attributes.has_key?(:'workTypeOverride') self.work_type_override = attributes[:'workTypeOverride'] end if attributes.has_key?(:'invoiceFlag') self.invoice_flag = attributes[:'invoiceFlag'] end if attributes.has_key?(:'invoiceParamId') self.invoice_param_id = attributes[:'invoiceParamId'] end if attributes.has_key?(:'invoiceOverride') self.invoice_override = attributes[:'invoiceOverride'] end if attributes.has_key?(:'_info') self._info = attributes[:'_info'] end end |
Instance Attribute Details
#_info ⇒ Object
Metadata of the entity
177 178 179 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 177 def _info @_info end |
#_module ⇒ Object
The Module Name
14 15 16 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 14 def _module @_module end |
#agreement_flag ⇒ Object
Returns the value of attribute agreement_flag.
134 135 136 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 134 def agreement_flag @agreement_flag end |
#agreement_override ⇒ Object
Returns the value of attribute agreement_override.
139 140 141 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 139 def agreement_override @agreement_override end |
#agreement_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Agreement parameter
137 138 139 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 137 def agreement_param_id @agreement_param_id end |
#agreement_type_flag ⇒ Object
Returns the value of attribute agreement_type_flag.
127 128 129 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 127 def agreement_type_flag @agreement_type_flag end |
#agreement_type_override ⇒ Object
Returns the value of attribute agreement_type_override.
132 133 134 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 132 def agreement_type_override @agreement_type_override end |
#agreement_type_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Agreement Type parameter
130 131 132 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 130 def agreement_type_param_id @agreement_type_param_id end |
#company_flag ⇒ Object
Returns the value of attribute company_flag.
55 56 57 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 55 def company_flag @company_flag end |
#company_override ⇒ Object
Returns the value of attribute company_override.
60 61 62 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 60 def company_override @company_override end |
#company_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Company parameter
58 59 60 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 58 def company_param_id @company_param_id end |
#department_default_flag ⇒ Object
Returns the value of attribute department_default_flag.
42 43 44 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 42 def department_default_flag @department_default_flag end |
#department_flag ⇒ Object
Returns the value of attribute department_flag.
37 38 39 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 37 def department_flag @department_flag end |
#department_override ⇒ Object
Returns the value of attribute department_override.
44 45 46 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 44 def department_override @department_override end |
#department_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Department parameter
40 41 42 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 40 def department_param_id @department_param_id end |
#description ⇒ Object
Returns the value of attribute description.
16 17 18 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 16 def description @description end |
#end_date_flag ⇒ Object
Returns the value of attribute end_date_flag.
76 77 78 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 76 def end_date_flag @end_date_flag end |
#end_date_override ⇒ Object
Returns the value of attribute end_date_override.
81 82 83 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 81 def end_date_override @end_date_override end |
#end_date_param_id ⇒ Object
Parameter unique identifier for the Custom Report's End Date parameter
79 80 81 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 79 def end_date_param_id @end_date_param_id end |
#generated_flag ⇒ Object
Returns the value of attribute generated_flag.
18 19 20 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 18 def generated_flag @generated_flag end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 7 def id @id end |
#invoice_flag ⇒ Object
Returns the value of attribute invoice_flag.
169 170 171 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 169 def invoice_flag @invoice_flag end |
#invoice_override ⇒ Object
Returns the value of attribute invoice_override.
174 175 176 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 174 def invoice_override @invoice_override end |
#invoice_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Invoice Type parameter
172 173 174 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 172 def invoice_param_id @invoice_param_id end |
#location_default_flag ⇒ Object
Returns the value of attribute location_default_flag.
33 34 35 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 33 def location_default_flag @location_default_flag end |
#location_flag ⇒ Object
Returns the value of attribute location_flag.
28 29 30 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 28 def location_flag @location_flag end |
#location_override ⇒ Object
Returns the value of attribute location_override.
35 36 37 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 35 def location_override @location_override end |
#location_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Location parameter
31 32 33 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 31 def location_param_id @location_param_id end |
#marketing_campaign_flag ⇒ Object
Returns the value of attribute marketing_campaign_flag.
97 98 99 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 97 def marketing_campaign_flag @marketing_campaign_flag end |
#marketing_campaign_override ⇒ Object
Returns the value of attribute marketing_campaign_override.
102 103 104 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 102 def marketing_campaign_override @marketing_campaign_override end |
#marketing_campaign_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Marketing Campaign parameter
100 101 102 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 100 def marketing_campaign_param_id @marketing_campaign_param_id end |
#member_flag ⇒ Object
Returns the value of attribute member_flag.
62 63 64 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 62 def member_flag @member_flag end |
#member_override ⇒ Object
Returns the value of attribute member_override.
67 68 69 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 67 def member_override @member_override end |
#member_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Member parameter
65 66 67 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 65 def member_param_id @member_param_id end |
#name ⇒ Object
Returns the value of attribute name.
11 12 13 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 11 def name @name end |
#opp_type_flag ⇒ Object
Returns the value of attribute opp_type_flag.
83 84 85 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 83 def opp_type_flag @opp_type_flag end |
#opp_type_override ⇒ Object
Returns the value of attribute opp_type_override.
88 89 90 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 88 def opp_type_override @opp_type_override end |
#opp_type_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Opportunity Type parameter
86 87 88 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 86 def opp_type_param_id @opp_type_param_id end |
#opportunity_flag ⇒ Object
Returns the value of attribute opportunity_flag.
90 91 92 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 90 def opportunity_flag @opportunity_flag end |
#opportunity_override ⇒ Object
Returns the value of attribute opportunity_override.
95 96 97 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 95 def opportunity_override @opportunity_override end |
#opportunity_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Opportunity parameter
93 94 95 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 93 def opportunity_param_id @opportunity_param_id end |
#parameter_name_separator ⇒ Object
Returns the value of attribute parameter_name_separator.
24 25 26 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 24 def parameter_name_separator @parameter_name_separator end |
#parameter_prefix ⇒ Object
Returns the value of attribute parameter_prefix.
20 21 22 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 20 def parameter_prefix @parameter_prefix end |
#parameter_separator ⇒ Object
Returns the value of attribute parameter_separator.
22 23 24 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 22 def parameter_separator @parameter_separator end |
#parameter_suffix ⇒ Object
Returns the value of attribute parameter_suffix.
26 27 28 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 26 def parameter_suffix @parameter_suffix end |
#project_flag ⇒ Object
Returns the value of attribute project_flag.
148 149 150 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 148 def project_flag @project_flag end |
#project_override ⇒ Object
Returns the value of attribute project_override.
153 154 155 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 153 def project_override @project_override end |
#project_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Project parameter
151 152 153 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 151 def project_param_id @project_param_id end |
#project_type_flag ⇒ Object
Returns the value of attribute project_type_flag.
141 142 143 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 141 def project_type_flag @project_type_flag end |
#project_type_override ⇒ Object
Returns the value of attribute project_type_override.
146 147 148 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 146 def project_type_override @project_type_override end |
#project_type_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Project Type parameter
144 145 146 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 144 def project_type_param_id @project_type_param_id end |
#report_link ⇒ Object
Returns the value of attribute report_link.
9 10 11 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 9 def report_link @report_link end |
#service_board_default_flag ⇒ Object
Returns the value of attribute service_board_default_flag.
109 110 111 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 109 def service_board_default_flag @service_board_default_flag end |
#service_board_flag ⇒ Object
Returns the value of attribute service_board_flag.
104 105 106 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 104 def service_board_flag @service_board_flag end |
#service_board_override ⇒ Object
Returns the value of attribute service_board_override.
111 112 113 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 111 def service_board_override @service_board_override end |
#service_board_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Service Board parameter
107 108 109 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 107 def service_board_param_id @service_board_param_id end |
#service_status_flag ⇒ Object
Returns the value of attribute service_status_flag.
120 121 122 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 120 def service_status_flag @service_status_flag end |
#service_status_override ⇒ Object
Returns the value of attribute service_status_override.
125 126 127 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 125 def service_status_override @service_status_override end |
#service_status_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Service Status parameter
123 124 125 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 123 def service_status_param_id @service_status_param_id end |
#service_type_flag ⇒ Object
Returns the value of attribute service_type_flag.
113 114 115 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 113 def service_type_flag @service_type_flag end |
#service_type_override ⇒ Object
Returns the value of attribute service_type_override.
118 119 120 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 118 def service_type_override @service_type_override end |
#service_type_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Service Type parameter
116 117 118 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 116 def service_type_param_id @service_type_param_id end |
#start_date_flag ⇒ Object
Returns the value of attribute start_date_flag.
69 70 71 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 69 def start_date_flag @start_date_flag end |
#start_date_override ⇒ Object
Returns the value of attribute start_date_override.
74 75 76 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 74 def start_date_override @start_date_override end |
#start_date_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Start Date parameter
72 73 74 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 72 def start_date_param_id @start_date_param_id end |
#territory_default_flag ⇒ Object
Returns the value of attribute territory_default_flag.
51 52 53 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 51 def territory_default_flag @territory_default_flag end |
#territory_flag ⇒ Object
Returns the value of attribute territory_flag.
46 47 48 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 46 def territory_flag @territory_flag end |
#territory_override ⇒ Object
Returns the value of attribute territory_override.
53 54 55 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 53 def territory_override @territory_override end |
#territory_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Terriroty parameter
49 50 51 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 49 def territory_param_id @territory_param_id end |
#work_role_flag ⇒ Object
Returns the value of attribute work_role_flag.
155 156 157 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 155 def work_role_flag @work_role_flag end |
#work_role_override ⇒ Object
Returns the value of attribute work_role_override.
160 161 162 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 160 def work_role_override @work_role_override end |
#work_role_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Work Role parameter
158 159 160 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 158 def work_role_param_id @work_role_param_id end |
#work_type_flag ⇒ Object
Returns the value of attribute work_type_flag.
162 163 164 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 162 def work_type_flag @work_type_flag end |
#work_type_override ⇒ Object
Returns the value of attribute work_type_override.
167 168 169 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 167 def work_type_override @work_type_override end |
#work_type_param_id ⇒ Object
Parameter unique identifier for the Custom Report's Work Type parameter
165 166 167 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 165 def work_type_param_id @work_type_param_id end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 202 def self.attribute_map { :'id' => :'id', :'report_link' => :'reportLink', :'name' => :'name', :'_module' => :'module', :'description' => :'description', :'generated_flag' => :'generatedFlag', :'parameter_prefix' => :'parameterPrefix', :'parameter_separator' => :'parameterSeparator', :'parameter_name_separator' => :'parameterNameSeparator', :'parameter_suffix' => :'parameterSuffix', :'location_flag' => :'locationFlag', :'location_param_id' => :'locationParamId', :'location_default_flag' => :'locationDefaultFlag', :'location_override' => :'locationOverride', :'department_flag' => :'departmentFlag', :'department_param_id' => :'departmentParamId', :'department_default_flag' => :'departmentDefaultFlag', :'department_override' => :'departmentOverride', :'territory_flag' => :'territoryFlag', :'territory_param_id' => :'territoryParamId', :'territory_default_flag' => :'territoryDefaultFlag', :'territory_override' => :'territoryOverride', :'company_flag' => :'companyFlag', :'company_param_id' => :'companyParamId', :'company_override' => :'companyOverride', :'member_flag' => :'memberFlag', :'member_param_id' => :'memberParamId', :'member_override' => :'memberOverride', :'start_date_flag' => :'startDateFlag', :'start_date_param_id' => :'startDateParamId', :'start_date_override' => :'startDateOverride', :'end_date_flag' => :'endDateFlag', :'end_date_param_id' => :'endDateParamId', :'end_date_override' => :'endDateOverride', :'opp_type_flag' => :'oppTypeFlag', :'opp_type_param_id' => :'oppTypeParamId', :'opp_type_override' => :'oppTypeOverride', :'opportunity_flag' => :'opportunityFlag', :'opportunity_param_id' => :'opportunityParamId', :'opportunity_override' => :'opportunityOverride', :'marketing_campaign_flag' => :'marketingCampaignFlag', :'marketing_campaign_param_id' => :'marketingCampaignParamId', :'marketing_campaign_override' => :'marketingCampaignOverride', :'service_board_flag' => :'serviceBoardFlag', :'service_board_param_id' => :'serviceBoardParamId', :'service_board_default_flag' => :'serviceBoardDefaultFlag', :'service_board_override' => :'serviceBoardOverride', :'service_type_flag' => :'serviceTypeFlag', :'service_type_param_id' => :'serviceTypeParamId', :'service_type_override' => :'serviceTypeOverride', :'service_status_flag' => :'serviceStatusFlag', :'service_status_param_id' => :'serviceStatusParamId', :'service_status_override' => :'serviceStatusOverride', :'agreement_type_flag' => :'agreementTypeFlag', :'agreement_type_param_id' => :'agreementTypeParamId', :'agreement_type_override' => :'agreementTypeOverride', :'agreement_flag' => :'agreementFlag', :'agreement_param_id' => :'agreementParamId', :'agreement_override' => :'agreementOverride', :'project_type_flag' => :'projectTypeFlag', :'project_type_param_id' => :'projectTypeParamId', :'project_type_override' => :'projectTypeOverride', :'project_flag' => :'projectFlag', :'project_param_id' => :'projectParamId', :'project_override' => :'projectOverride', :'work_role_flag' => :'workRoleFlag', :'work_role_param_id' => :'workRoleParamId', :'work_role_override' => :'workRoleOverride', :'work_type_flag' => :'workTypeFlag', :'work_type_param_id' => :'workTypeParamId', :'work_type_override' => :'workTypeOverride', :'invoice_flag' => :'invoiceFlag', :'invoice_param_id' => :'invoiceParamId', :'invoice_override' => :'invoiceOverride', :'_info' => :'_info' } end |
.swagger_types ⇒ Object
Attribute type mapping.
283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 283 def self.swagger_types { :'id' => :'Integer', :'report_link' => :'String', :'name' => :'String', :'_module' => :'String', :'description' => :'String', :'generated_flag' => :'BOOLEAN', :'parameter_prefix' => :'String', :'parameter_separator' => :'String', :'parameter_name_separator' => :'String', :'parameter_suffix' => :'String', :'location_flag' => :'BOOLEAN', :'location_param_id' => :'Integer', :'location_default_flag' => :'BOOLEAN', :'location_override' => :'String', :'department_flag' => :'BOOLEAN', :'department_param_id' => :'Integer', :'department_default_flag' => :'BOOLEAN', :'department_override' => :'String', :'territory_flag' => :'BOOLEAN', :'territory_param_id' => :'Integer', :'territory_default_flag' => :'BOOLEAN', :'territory_override' => :'String', :'company_flag' => :'BOOLEAN', :'company_param_id' => :'Integer', :'company_override' => :'String', :'member_flag' => :'BOOLEAN', :'member_param_id' => :'Integer', :'member_override' => :'String', :'start_date_flag' => :'BOOLEAN', :'start_date_param_id' => :'Integer', :'start_date_override' => :'String', :'end_date_flag' => :'BOOLEAN', :'end_date_param_id' => :'Integer', :'end_date_override' => :'String', :'opp_type_flag' => :'BOOLEAN', :'opp_type_param_id' => :'Integer', :'opp_type_override' => :'String', :'opportunity_flag' => :'BOOLEAN', :'opportunity_param_id' => :'Integer', :'opportunity_override' => :'String', :'marketing_campaign_flag' => :'BOOLEAN', :'marketing_campaign_param_id' => :'Integer', :'marketing_campaign_override' => :'String', :'service_board_flag' => :'BOOLEAN', :'service_board_param_id' => :'Integer', :'service_board_default_flag' => :'BOOLEAN', :'service_board_override' => :'String', :'service_type_flag' => :'BOOLEAN', :'service_type_param_id' => :'Integer', :'service_type_override' => :'String', :'service_status_flag' => :'BOOLEAN', :'service_status_param_id' => :'Integer', :'service_status_override' => :'String', :'agreement_type_flag' => :'BOOLEAN', :'agreement_type_param_id' => :'Integer', :'agreement_type_override' => :'String', :'agreement_flag' => :'BOOLEAN', :'agreement_param_id' => :'Integer', :'agreement_override' => :'String', :'project_type_flag' => :'BOOLEAN', :'project_type_param_id' => :'Integer', :'project_type_override' => :'String', :'project_flag' => :'BOOLEAN', :'project_param_id' => :'Integer', :'project_override' => :'String', :'work_role_flag' => :'BOOLEAN', :'work_role_param_id' => :'Integer', :'work_role_override' => :'String', :'work_type_flag' => :'BOOLEAN', :'work_type_param_id' => :'Integer', :'work_type_override' => :'String', :'invoice_flag' => :'BOOLEAN', :'invoice_param_id' => :'Integer', :'invoice_override' => :'String', :'_info' => :'Metadata' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 822 def ==(o) return true if self.equal?(o) self.class == o.class && id == o.id && report_link == o.report_link && name == o.name && _module == o._module && description == o.description && generated_flag == o.generated_flag && parameter_prefix == o.parameter_prefix && parameter_separator == o.parameter_separator && parameter_name_separator == o.parameter_name_separator && parameter_suffix == o.parameter_suffix && location_flag == o.location_flag && location_param_id == o.location_param_id && location_default_flag == o.location_default_flag && location_override == o.location_override && department_flag == o.department_flag && department_param_id == o.department_param_id && department_default_flag == o.department_default_flag && department_override == o.department_override && territory_flag == o.territory_flag && territory_param_id == o.territory_param_id && territory_default_flag == o.territory_default_flag && territory_override == o.territory_override && company_flag == o.company_flag && company_param_id == o.company_param_id && company_override == o.company_override && member_flag == o.member_flag && member_param_id == o.member_param_id && member_override == o.member_override && start_date_flag == o.start_date_flag && start_date_param_id == o.start_date_param_id && start_date_override == o.start_date_override && end_date_flag == o.end_date_flag && end_date_param_id == o.end_date_param_id && end_date_override == o.end_date_override && opp_type_flag == o.opp_type_flag && opp_type_param_id == o.opp_type_param_id && opp_type_override == o.opp_type_override && opportunity_flag == o.opportunity_flag && opportunity_param_id == o.opportunity_param_id && opportunity_override == o.opportunity_override && marketing_campaign_flag == o.marketing_campaign_flag && marketing_campaign_param_id == o.marketing_campaign_param_id && marketing_campaign_override == o.marketing_campaign_override && service_board_flag == o.service_board_flag && service_board_param_id == o.service_board_param_id && service_board_default_flag == o.service_board_default_flag && service_board_override == o.service_board_override && service_type_flag == o.service_type_flag && service_type_param_id == o.service_type_param_id && service_type_override == o.service_type_override && service_status_flag == o.service_status_flag && service_status_param_id == o.service_status_param_id && service_status_override == o.service_status_override && agreement_type_flag == o.agreement_type_flag && agreement_type_param_id == o.agreement_type_param_id && agreement_type_override == o.agreement_type_override && agreement_flag == o.agreement_flag && agreement_param_id == o.agreement_param_id && agreement_override == o.agreement_override && project_type_flag == o.project_type_flag && project_type_param_id == o.project_type_param_id && project_type_override == o.project_type_override && project_flag == o.project_flag && project_param_id == o.project_param_id && project_override == o.project_override && work_role_flag == o.work_role_flag && work_role_param_id == o.work_role_param_id && work_role_override == o.work_role_override && work_type_flag == o.work_type_flag && work_type_param_id == o.work_type_param_id && work_type_override == o.work_type_override && invoice_flag == o.invoice_flag && invoice_param_id == o.invoice_param_id && invoice_override == o.invoice_override && _info == o._info end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 938 def _deserialize(type, value) case type.to_sym when :DateTime DateTime.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :BOOLEAN if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model temp_model = ConnectWise.const_get(type).new temp_model.build_from_hash(value) end end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 1004 def _to_hash(value) if value.is_a?(Array) value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 917 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(o) ⇒ Boolean
904 905 906 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 904 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
910 911 912 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 910 def hash [id, report_link, name, _module, description, generated_flag, parameter_prefix, parameter_separator, parameter_name_separator, parameter_suffix, location_flag, location_param_id, location_default_flag, location_override, department_flag, department_param_id, department_default_flag, department_override, territory_flag, territory_param_id, territory_default_flag, territory_override, company_flag, company_param_id, company_override, member_flag, member_param_id, member_override, start_date_flag, start_date_param_id, start_date_override, end_date_flag, end_date_param_id, end_date_override, opp_type_flag, opp_type_param_id, opp_type_override, opportunity_flag, opportunity_param_id, opportunity_override, marketing_campaign_flag, marketing_campaign_param_id, marketing_campaign_override, service_board_flag, service_board_param_id, service_board_default_flag, service_board_override, service_type_flag, service_type_param_id, service_type_override, service_status_flag, service_status_param_id, service_status_override, agreement_type_flag, agreement_type_param_id, agreement_type_override, agreement_flag, agreement_param_id, agreement_override, project_type_flag, project_type_param_id, project_type_override, project_flag, project_param_id, project_override, work_role_flag, work_role_param_id, work_role_override, work_type_flag, work_type_param_id, work_type_override, invoice_flag, invoice_param_id, invoice_override, _info].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 675 def list_invalid_properties invalid_properties = Array.new if @report_link.nil? invalid_properties.push("invalid value for 'report_link', report_link cannot be nil.") end if @name.nil? invalid_properties.push("invalid value for 'name', name cannot be nil.") end if @name.to_s.length > 100 invalid_properties.push("invalid value for 'name', the character length must be smaller than or equal to 100.") end if @_module.nil? invalid_properties.push("invalid value for '_module', _module cannot be nil.") end if @description.nil? invalid_properties.push("invalid value for 'description', description cannot be nil.") end if @description.to_s.length > 150 invalid_properties.push("invalid value for 'description', the character length must be smaller than or equal to 150.") end if !@parameter_prefix.nil? && @parameter_prefix.to_s.length > 50 invalid_properties.push("invalid value for 'parameter_prefix', the character length must be smaller than or equal to 50.") end if !@parameter_separator.nil? && @parameter_separator.to_s.length > 50 invalid_properties.push("invalid value for 'parameter_separator', the character length must be smaller than or equal to 50.") end if !@parameter_name_separator.nil? && @parameter_name_separator.to_s.length > 50 invalid_properties.push("invalid value for 'parameter_name_separator', the character length must be smaller than or equal to 50.") end if !@parameter_suffix.nil? && @parameter_suffix.to_s.length > 50 invalid_properties.push("invalid value for 'parameter_suffix', the character length must be smaller than or equal to 50.") end return invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
984 985 986 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 984 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
990 991 992 993 994 995 996 997 998 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 990 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) next if value.nil? hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
978 979 980 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 978 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 |
# File 'lib/connectwise-ruby-sdk/models/custom_report.rb', line 722 def valid? return false if @report_link.nil? return false if @name.nil? return false if @name.to_s.length > 100 return false if @_module.nil? _module_validator = EnumAttributeValidator.new('String', ["Companies", "Finance", "Marketing", "Procurement", "Project", "Sales", "ServiceDesk", "TimeExpense"]) return false unless _module_validator.valid?(@_module) return false if @description.nil? return false if @description.to_s.length > 150 return false if !@parameter_prefix.nil? && @parameter_prefix.to_s.length > 50 return false if !@parameter_separator.nil? && @parameter_separator.to_s.length > 50 return false if !@parameter_name_separator.nil? && @parameter_name_separator.to_s.length > 50 return false if !@parameter_suffix.nil? && @parameter_suffix.to_s.length > 50 return true end |