Class: ConnectWise::PortalConfigurationProjectSetup
- Inherits:
-
Object
- Object
- ConnectWise::PortalConfigurationProjectSetup
- Defined in:
- lib/connect_wise/models/portal_configuration_project_setup.rb
Defined Under Namespace
Classes: EnumAttributeValidator
Instance Attribute Summary collapse
-
#_info ⇒ Object
Returns the value of attribute _info.
-
#billing_method_flag ⇒ Object
Returns the value of attribute billing_method_flag.
-
#contact_flag ⇒ Object
Returns the value of attribute contact_flag.
-
#description_flag ⇒ Object
Returns the value of attribute description_flag.
-
#estimated_end_flag ⇒ Object
Returns the value of attribute estimated_end_flag.
-
#estimated_start_flag ⇒ Object
Returns the value of attribute estimated_start_flag.
-
#fixed_fee_actual_finish_flag ⇒ Object
Returns the value of attribute fixed_fee_actual_finish_flag.
-
#fixed_fee_actual_hrs_flag ⇒ Object
Returns the value of attribute fixed_fee_actual_hrs_flag.
-
#fixed_fee_actual_start_flag ⇒ Object
Returns the value of attribute fixed_fee_actual_start_flag.
-
#fixed_fee_assigned_flag ⇒ Object
Returns the value of attribute fixed_fee_assigned_flag.
-
#fixed_fee_bill_flag ⇒ Object
Returns the value of attribute fixed_fee_bill_flag.
-
#fixed_fee_budget_hrs_flag ⇒ Object
Returns the value of attribute fixed_fee_budget_hrs_flag.
-
#fixed_fee_scheduled_finish_flag ⇒ Object
Returns the value of attribute fixed_fee_scheduled_finish_flag.
-
#fixed_fee_scheduled_hrs_flag ⇒ Object
Returns the value of attribute fixed_fee_scheduled_hrs_flag.
-
#fixed_fee_scheduled_start_flag ⇒ Object
Returns the value of attribute fixed_fee_scheduled_start_flag.
-
#fixed_fee_status_flag ⇒ Object
Returns the value of attribute fixed_fee_status_flag.
-
#id ⇒ Object
Returns the value of attribute id.
-
#last_updated_flag ⇒ Object
Returns the value of attribute last_updated_flag.
-
#only_display ⇒ Object
Returns the value of attribute only_display.
-
#portal_config ⇒ Object
Returns the value of attribute portal_config.
-
#project_detail_total_hours_flag ⇒ Object
Returns the value of attribute project_detail_total_hours_flag.
-
#project_issue_actual_finish_flag ⇒ Object
Returns the value of attribute project_issue_actual_finish_flag.
-
#project_issue_actual_hrs_flag ⇒ Object
Returns the value of attribute project_issue_actual_hrs_flag.
-
#project_issue_actual_start_flag ⇒ Object
Returns the value of attribute project_issue_actual_start_flag.
-
#project_issue_assigned_flag ⇒ Object
Returns the value of attribute project_issue_assigned_flag.
-
#project_issue_bill_flag ⇒ Object
Returns the value of attribute project_issue_bill_flag.
-
#project_issue_budget_hrs_flag ⇒ Object
Returns the value of attribute project_issue_budget_hrs_flag.
-
#project_issue_scheduled_finish_flag ⇒ Object
Returns the value of attribute project_issue_scheduled_finish_flag.
-
#project_issue_scheduled_hrs_flag ⇒ Object
Returns the value of attribute project_issue_scheduled_hrs_flag.
-
#project_issue_scheduled_start_flag ⇒ Object
Returns the value of attribute project_issue_scheduled_start_flag.
-
#project_issue_status_flag ⇒ Object
Returns the value of attribute project_issue_status_flag.
-
#project_manager_flag ⇒ Object
Returns the value of attribute project_manager_flag.
-
#project_name_flag ⇒ Object
Returns the value of attribute project_name_flag.
-
#project_type_flag ⇒ Object
Returns the value of attribute project_type_flag.
-
#status_flag ⇒ Object
Returns the value of attribute status_flag.
-
#time_material_actual_finish_flag ⇒ Object
Returns the value of attribute time_material_actual_finish_flag.
-
#time_material_actual_hrs_flag ⇒ Object
Returns the value of attribute time_material_actual_hrs_flag.
-
#time_material_actual_start_flag ⇒ Object
Returns the value of attribute time_material_actual_start_flag.
-
#time_material_assigned_flag ⇒ Object
Returns the value of attribute time_material_assigned_flag.
-
#time_material_bill_flag ⇒ Object
Returns the value of attribute time_material_bill_flag.
-
#time_material_budget_hrs_flag ⇒ Object
Returns the value of attribute time_material_budget_hrs_flag.
-
#time_material_scheduled_finish_flag ⇒ Object
Returns the value of attribute time_material_scheduled_finish_flag.
-
#time_material_scheduled_hrs_flag ⇒ Object
Returns the value of attribute time_material_scheduled_hrs_flag.
-
#time_material_scheduled_start_flag ⇒ Object
Returns the value of attribute time_material_scheduled_start_flag.
-
#time_material_status_flag ⇒ Object
Returns the value of attribute time_material_status_flag.
Class Method Summary collapse
-
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about.
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.build_from_hash(attributes) ⇒ Object
Builds the object from hash.
-
.openapi_nullable ⇒ Object
List of attributes with nullable: true.
-
.openapi_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(other) ⇒ 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?(other) ⇒ Boolean
-
#hash ⇒ Integer
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ PortalConfigurationProjectSetup
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 = {}) ⇒ PortalConfigurationProjectSetup
Initializes the object
196 197 198 199 200 201 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 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 196 def initialize(attributes = {}) raise ArgumentError, 'The input argument (attributes) must be a hash in `ConnectWise::PortalConfigurationProjectSetup` initialize method' unless attributes.is_a?(Hash) # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) do |(k, v), h| raise ArgumentError, "`#{k}` is not a valid attribute in `ConnectWise::PortalConfigurationProjectSetup`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect unless self.class.attribute_map.key?(k.to_sym) h[k.to_sym] = v end self.only_display = attributes[:only_display] if attributes.key?(:only_display) self.id = attributes[:id] if attributes.key?(:id) self.portal_config = attributes[:portal_config] if attributes.key?(:portal_config) self.project_name_flag = attributes[:project_name_flag] if attributes.key?(:project_name_flag) self.project_type_flag = attributes[:project_type_flag] if attributes.key?(:project_type_flag) self.status_flag = attributes[:status_flag] if attributes.key?(:status_flag) self.project_manager_flag = attributes[:project_manager_flag] if attributes.key?(:project_manager_flag) self.billing_method_flag = attributes[:billing_method_flag] if attributes.key?(:billing_method_flag) self.contact_flag = attributes[:contact_flag] if attributes.key?(:contact_flag) self.estimated_start_flag = attributes[:estimated_start_flag] if attributes.key?(:estimated_start_flag) self.estimated_end_flag = attributes[:estimated_end_flag] if attributes.key?(:estimated_end_flag) self.description_flag = attributes[:description_flag] if attributes.key?(:description_flag) self.last_updated_flag = attributes[:last_updated_flag] if attributes.key?(:last_updated_flag) self.time_material_budget_hrs_flag = attributes[:time_material_budget_hrs_flag] if attributes.key?(:time_material_budget_hrs_flag) self.time_material_scheduled_start_flag = attributes[:time_material_scheduled_start_flag] if attributes.key?(:time_material_scheduled_start_flag) self.time_material_scheduled_finish_flag = attributes[:time_material_scheduled_finish_flag] if attributes.key?(:time_material_scheduled_finish_flag) self.time_material_scheduled_hrs_flag = attributes[:time_material_scheduled_hrs_flag] if attributes.key?(:time_material_scheduled_hrs_flag) self.time_material_actual_start_flag = attributes[:time_material_actual_start_flag] if attributes.key?(:time_material_actual_start_flag) self.time_material_actual_finish_flag = attributes[:time_material_actual_finish_flag] if attributes.key?(:time_material_actual_finish_flag) self.time_material_actual_hrs_flag = attributes[:time_material_actual_hrs_flag] if attributes.key?(:time_material_actual_hrs_flag) self.time_material_bill_flag = attributes[:time_material_bill_flag] if attributes.key?(:time_material_bill_flag) self.time_material_status_flag = attributes[:time_material_status_flag] if attributes.key?(:time_material_status_flag) self.time_material_assigned_flag = attributes[:time_material_assigned_flag] if attributes.key?(:time_material_assigned_flag) self.fixed_fee_budget_hrs_flag = attributes[:fixed_fee_budget_hrs_flag] if attributes.key?(:fixed_fee_budget_hrs_flag) self.fixed_fee_scheduled_start_flag = attributes[:fixed_fee_scheduled_start_flag] if attributes.key?(:fixed_fee_scheduled_start_flag) self.fixed_fee_scheduled_finish_flag = attributes[:fixed_fee_scheduled_finish_flag] if attributes.key?(:fixed_fee_scheduled_finish_flag) self.fixed_fee_scheduled_hrs_flag = attributes[:fixed_fee_scheduled_hrs_flag] if attributes.key?(:fixed_fee_scheduled_hrs_flag) self.fixed_fee_actual_start_flag = attributes[:fixed_fee_actual_start_flag] if attributes.key?(:fixed_fee_actual_start_flag) self.fixed_fee_actual_finish_flag = attributes[:fixed_fee_actual_finish_flag] if attributes.key?(:fixed_fee_actual_finish_flag) self.fixed_fee_actual_hrs_flag = attributes[:fixed_fee_actual_hrs_flag] if attributes.key?(:fixed_fee_actual_hrs_flag) self.fixed_fee_bill_flag = attributes[:fixed_fee_bill_flag] if attributes.key?(:fixed_fee_bill_flag) self.fixed_fee_status_flag = attributes[:fixed_fee_status_flag] if attributes.key?(:fixed_fee_status_flag) self.fixed_fee_assigned_flag = attributes[:fixed_fee_assigned_flag] if attributes.key?(:fixed_fee_assigned_flag) self.project_issue_budget_hrs_flag = attributes[:project_issue_budget_hrs_flag] if attributes.key?(:project_issue_budget_hrs_flag) self.project_issue_scheduled_start_flag = attributes[:project_issue_scheduled_start_flag] if attributes.key?(:project_issue_scheduled_start_flag) self.project_issue_scheduled_finish_flag = attributes[:project_issue_scheduled_finish_flag] if attributes.key?(:project_issue_scheduled_finish_flag) self.project_issue_scheduled_hrs_flag = attributes[:project_issue_scheduled_hrs_flag] if attributes.key?(:project_issue_scheduled_hrs_flag) self.project_issue_actual_start_flag = attributes[:project_issue_actual_start_flag] if attributes.key?(:project_issue_actual_start_flag) self.project_issue_actual_finish_flag = attributes[:project_issue_actual_finish_flag] if attributes.key?(:project_issue_actual_finish_flag) self.project_issue_actual_hrs_flag = attributes[:project_issue_actual_hrs_flag] if attributes.key?(:project_issue_actual_hrs_flag) self.project_issue_bill_flag = attributes[:project_issue_bill_flag] if attributes.key?(:project_issue_bill_flag) self.project_issue_status_flag = attributes[:project_issue_status_flag] if attributes.key?(:project_issue_status_flag) self.project_issue_assigned_flag = attributes[:project_issue_assigned_flag] if attributes.key?(:project_issue_assigned_flag) self.project_detail_total_hours_flag = attributes[:project_detail_total_hours_flag] if attributes.key?(:project_detail_total_hours_flag) return unless attributes.key?(:_info) return unless (value = attributes[:_info]).is_a?(Hash) self._info = value end |
Instance Attribute Details
#_info ⇒ Object
Returns the value of attribute _info.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def _info @_info end |
#billing_method_flag ⇒ Object
Returns the value of attribute billing_method_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def billing_method_flag @billing_method_flag end |
#contact_flag ⇒ Object
Returns the value of attribute contact_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def contact_flag @contact_flag end |
#description_flag ⇒ Object
Returns the value of attribute description_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def description_flag @description_flag end |
#estimated_end_flag ⇒ Object
Returns the value of attribute estimated_end_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def estimated_end_flag @estimated_end_flag end |
#estimated_start_flag ⇒ Object
Returns the value of attribute estimated_start_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def estimated_start_flag @estimated_start_flag end |
#fixed_fee_actual_finish_flag ⇒ Object
Returns the value of attribute fixed_fee_actual_finish_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def fixed_fee_actual_finish_flag @fixed_fee_actual_finish_flag end |
#fixed_fee_actual_hrs_flag ⇒ Object
Returns the value of attribute fixed_fee_actual_hrs_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def fixed_fee_actual_hrs_flag @fixed_fee_actual_hrs_flag end |
#fixed_fee_actual_start_flag ⇒ Object
Returns the value of attribute fixed_fee_actual_start_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def fixed_fee_actual_start_flag @fixed_fee_actual_start_flag end |
#fixed_fee_assigned_flag ⇒ Object
Returns the value of attribute fixed_fee_assigned_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def fixed_fee_assigned_flag @fixed_fee_assigned_flag end |
#fixed_fee_bill_flag ⇒ Object
Returns the value of attribute fixed_fee_bill_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def fixed_fee_bill_flag @fixed_fee_bill_flag end |
#fixed_fee_budget_hrs_flag ⇒ Object
Returns the value of attribute fixed_fee_budget_hrs_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def fixed_fee_budget_hrs_flag @fixed_fee_budget_hrs_flag end |
#fixed_fee_scheduled_finish_flag ⇒ Object
Returns the value of attribute fixed_fee_scheduled_finish_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def fixed_fee_scheduled_finish_flag @fixed_fee_scheduled_finish_flag end |
#fixed_fee_scheduled_hrs_flag ⇒ Object
Returns the value of attribute fixed_fee_scheduled_hrs_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def fixed_fee_scheduled_hrs_flag @fixed_fee_scheduled_hrs_flag end |
#fixed_fee_scheduled_start_flag ⇒ Object
Returns the value of attribute fixed_fee_scheduled_start_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def fixed_fee_scheduled_start_flag @fixed_fee_scheduled_start_flag end |
#fixed_fee_status_flag ⇒ Object
Returns the value of attribute fixed_fee_status_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def fixed_fee_status_flag @fixed_fee_status_flag end |
#id ⇒ Object
Returns the value of attribute id.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def id @id end |
#last_updated_flag ⇒ Object
Returns the value of attribute last_updated_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def last_updated_flag @last_updated_flag end |
#only_display ⇒ Object
Returns the value of attribute only_display.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def only_display @only_display end |
#portal_config ⇒ Object
Returns the value of attribute portal_config.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def portal_config @portal_config end |
#project_detail_total_hours_flag ⇒ Object
Returns the value of attribute project_detail_total_hours_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def project_detail_total_hours_flag @project_detail_total_hours_flag end |
#project_issue_actual_finish_flag ⇒ Object
Returns the value of attribute project_issue_actual_finish_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def project_issue_actual_finish_flag @project_issue_actual_finish_flag end |
#project_issue_actual_hrs_flag ⇒ Object
Returns the value of attribute project_issue_actual_hrs_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def project_issue_actual_hrs_flag @project_issue_actual_hrs_flag end |
#project_issue_actual_start_flag ⇒ Object
Returns the value of attribute project_issue_actual_start_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def project_issue_actual_start_flag @project_issue_actual_start_flag end |
#project_issue_assigned_flag ⇒ Object
Returns the value of attribute project_issue_assigned_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def project_issue_assigned_flag @project_issue_assigned_flag end |
#project_issue_bill_flag ⇒ Object
Returns the value of attribute project_issue_bill_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def project_issue_bill_flag @project_issue_bill_flag end |
#project_issue_budget_hrs_flag ⇒ Object
Returns the value of attribute project_issue_budget_hrs_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def project_issue_budget_hrs_flag @project_issue_budget_hrs_flag end |
#project_issue_scheduled_finish_flag ⇒ Object
Returns the value of attribute project_issue_scheduled_finish_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def project_issue_scheduled_finish_flag @project_issue_scheduled_finish_flag end |
#project_issue_scheduled_hrs_flag ⇒ Object
Returns the value of attribute project_issue_scheduled_hrs_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def project_issue_scheduled_hrs_flag @project_issue_scheduled_hrs_flag end |
#project_issue_scheduled_start_flag ⇒ Object
Returns the value of attribute project_issue_scheduled_start_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def project_issue_scheduled_start_flag @project_issue_scheduled_start_flag end |
#project_issue_status_flag ⇒ Object
Returns the value of attribute project_issue_status_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def project_issue_status_flag @project_issue_status_flag end |
#project_manager_flag ⇒ Object
Returns the value of attribute project_manager_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def project_manager_flag @project_manager_flag end |
#project_name_flag ⇒ Object
Returns the value of attribute project_name_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def project_name_flag @project_name_flag end |
#project_type_flag ⇒ Object
Returns the value of attribute project_type_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def project_type_flag @project_type_flag end |
#status_flag ⇒ Object
Returns the value of attribute status_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def status_flag @status_flag end |
#time_material_actual_finish_flag ⇒ Object
Returns the value of attribute time_material_actual_finish_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def time_material_actual_finish_flag @time_material_actual_finish_flag end |
#time_material_actual_hrs_flag ⇒ Object
Returns the value of attribute time_material_actual_hrs_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def time_material_actual_hrs_flag @time_material_actual_hrs_flag end |
#time_material_actual_start_flag ⇒ Object
Returns the value of attribute time_material_actual_start_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def time_material_actual_start_flag @time_material_actual_start_flag end |
#time_material_assigned_flag ⇒ Object
Returns the value of attribute time_material_assigned_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def time_material_assigned_flag @time_material_assigned_flag end |
#time_material_bill_flag ⇒ Object
Returns the value of attribute time_material_bill_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def time_material_bill_flag @time_material_bill_flag end |
#time_material_budget_hrs_flag ⇒ Object
Returns the value of attribute time_material_budget_hrs_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def time_material_budget_hrs_flag @time_material_budget_hrs_flag end |
#time_material_scheduled_finish_flag ⇒ Object
Returns the value of attribute time_material_scheduled_finish_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def time_material_scheduled_finish_flag @time_material_scheduled_finish_flag end |
#time_material_scheduled_hrs_flag ⇒ Object
Returns the value of attribute time_material_scheduled_hrs_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def time_material_scheduled_hrs_flag @time_material_scheduled_hrs_flag end |
#time_material_scheduled_start_flag ⇒ Object
Returns the value of attribute time_material_scheduled_start_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def time_material_scheduled_start_flag @time_material_scheduled_start_flag end |
#time_material_status_flag ⇒ Object
Returns the value of attribute time_material_status_flag.
16 17 18 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 16 def time_material_status_flag @time_material_status_flag end |
Class Method Details
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about
91 92 93 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 91 def self.acceptable_attributes attribute_map.values end |
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 40 def self.attribute_map { only_display: :onlyDisplay, id: :id, portal_config: :portalConfig, project_name_flag: :projectNameFlag, project_type_flag: :projectTypeFlag, status_flag: :statusFlag, project_manager_flag: :projectManagerFlag, billing_method_flag: :billingMethodFlag, contact_flag: :contactFlag, estimated_start_flag: :estimatedStartFlag, estimated_end_flag: :estimatedEndFlag, description_flag: :descriptionFlag, last_updated_flag: :lastUpdatedFlag, time_material_budget_hrs_flag: :timeMaterialBudgetHrsFlag, time_material_scheduled_start_flag: :timeMaterialScheduledStartFlag, time_material_scheduled_finish_flag: :timeMaterialScheduledFinishFlag, time_material_scheduled_hrs_flag: :timeMaterialScheduledHrsFlag, time_material_actual_start_flag: :timeMaterialActualStartFlag, time_material_actual_finish_flag: :timeMaterialActualFinishFlag, time_material_actual_hrs_flag: :timeMaterialActualHrsFlag, time_material_bill_flag: :timeMaterialBillFlag, time_material_status_flag: :timeMaterialStatusFlag, time_material_assigned_flag: :timeMaterialAssignedFlag, fixed_fee_budget_hrs_flag: :fixedFeeBudgetHrsFlag, fixed_fee_scheduled_start_flag: :fixedFeeScheduledStartFlag, fixed_fee_scheduled_finish_flag: :fixedFeeScheduledFinishFlag, fixed_fee_scheduled_hrs_flag: :fixedFeeScheduledHrsFlag, fixed_fee_actual_start_flag: :fixedFeeActualStartFlag, fixed_fee_actual_finish_flag: :fixedFeeActualFinishFlag, fixed_fee_actual_hrs_flag: :fixedFeeActualHrsFlag, fixed_fee_bill_flag: :fixedFeeBillFlag, fixed_fee_status_flag: :fixedFeeStatusFlag, fixed_fee_assigned_flag: :fixedFeeAssignedFlag, project_issue_budget_hrs_flag: :projectIssueBudgetHrsFlag, project_issue_scheduled_start_flag: :projectIssueScheduledStartFlag, project_issue_scheduled_finish_flag: :projectIssueScheduledFinishFlag, project_issue_scheduled_hrs_flag: :projectIssueScheduledHrsFlag, project_issue_actual_start_flag: :projectIssueActualStartFlag, project_issue_actual_finish_flag: :projectIssueActualFinishFlag, project_issue_actual_hrs_flag: :projectIssueActualHrsFlag, project_issue_bill_flag: :projectIssueBillFlag, project_issue_status_flag: :projectIssueStatusFlag, project_issue_assigned_flag: :projectIssueAssignedFlag, project_detail_total_hours_flag: :projectDetailTotalHoursFlag, _info: :_info } end |
.build_from_hash(attributes) ⇒ Object
Builds the object from hash
392 393 394 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 392 def self.build_from_hash(attributes) new.build_from_hash(attributes) end |
.openapi_nullable ⇒ Object
List of attributes with nullable: true
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 147 def self.openapi_nullable Set.new(i[ only_display project_name_flag project_type_flag status_flag project_manager_flag billing_method_flag contact_flag estimated_start_flag estimated_end_flag description_flag last_updated_flag time_material_budget_hrs_flag time_material_scheduled_start_flag time_material_scheduled_finish_flag time_material_scheduled_hrs_flag time_material_actual_start_flag time_material_actual_finish_flag time_material_actual_hrs_flag time_material_bill_flag time_material_status_flag time_material_assigned_flag fixed_fee_budget_hrs_flag fixed_fee_scheduled_start_flag fixed_fee_scheduled_finish_flag fixed_fee_scheduled_hrs_flag fixed_fee_actual_start_flag fixed_fee_actual_finish_flag fixed_fee_actual_hrs_flag fixed_fee_bill_flag fixed_fee_status_flag fixed_fee_assigned_flag project_issue_budget_hrs_flag project_issue_scheduled_start_flag project_issue_scheduled_finish_flag project_issue_scheduled_hrs_flag project_issue_actual_start_flag project_issue_actual_finish_flag project_issue_actual_hrs_flag project_issue_bill_flag project_issue_status_flag project_issue_assigned_flag project_detail_total_hours_flag ]) end |
.openapi_types ⇒ Object
Attribute type mapping.
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 96 def self.openapi_types { only_display: :String, id: :Integer, portal_config: :PortalConfigurationReference, project_name_flag: :Boolean, project_type_flag: :Boolean, status_flag: :Boolean, project_manager_flag: :Boolean, billing_method_flag: :Boolean, contact_flag: :Boolean, estimated_start_flag: :Boolean, estimated_end_flag: :Boolean, description_flag: :Boolean, last_updated_flag: :Boolean, time_material_budget_hrs_flag: :Boolean, time_material_scheduled_start_flag: :Boolean, time_material_scheduled_finish_flag: :Boolean, time_material_scheduled_hrs_flag: :Boolean, time_material_actual_start_flag: :Boolean, time_material_actual_finish_flag: :Boolean, time_material_actual_hrs_flag: :Boolean, time_material_bill_flag: :Boolean, time_material_status_flag: :Boolean, time_material_assigned_flag: :Boolean, fixed_fee_budget_hrs_flag: :Boolean, fixed_fee_scheduled_start_flag: :Boolean, fixed_fee_scheduled_finish_flag: :Boolean, fixed_fee_scheduled_hrs_flag: :Boolean, fixed_fee_actual_start_flag: :Boolean, fixed_fee_actual_finish_flag: :Boolean, fixed_fee_actual_hrs_flag: :Boolean, fixed_fee_bill_flag: :Boolean, fixed_fee_status_flag: :Boolean, fixed_fee_assigned_flag: :Boolean, project_issue_budget_hrs_flag: :Boolean, project_issue_scheduled_start_flag: :Boolean, project_issue_scheduled_finish_flag: :Boolean, project_issue_scheduled_hrs_flag: :Boolean, project_issue_actual_start_flag: :Boolean, project_issue_actual_finish_flag: :Boolean, project_issue_actual_hrs_flag: :Boolean, project_issue_bill_flag: :Boolean, project_issue_status_flag: :Boolean, project_issue_assigned_flag: :Boolean, project_detail_total_hours_flag: :Boolean, _info: :'Hash<String, String>' } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
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 362 363 364 365 366 367 368 369 370 371 372 373 374 375 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 326 def ==(other) return true if equal?(other) self.class == other.class && only_display == other.only_display && id == other.id && portal_config == other.portal_config && project_name_flag == other.project_name_flag && project_type_flag == other.project_type_flag && status_flag == other.status_flag && project_manager_flag == other.project_manager_flag && billing_method_flag == other.billing_method_flag && contact_flag == other.contact_flag && estimated_start_flag == other.estimated_start_flag && estimated_end_flag == other.estimated_end_flag && description_flag == other.description_flag && last_updated_flag == other.last_updated_flag && time_material_budget_hrs_flag == other.time_material_budget_hrs_flag && time_material_scheduled_start_flag == other.time_material_scheduled_start_flag && time_material_scheduled_finish_flag == other.time_material_scheduled_finish_flag && time_material_scheduled_hrs_flag == other.time_material_scheduled_hrs_flag && time_material_actual_start_flag == other.time_material_actual_start_flag && time_material_actual_finish_flag == other.time_material_actual_finish_flag && time_material_actual_hrs_flag == other.time_material_actual_hrs_flag && time_material_bill_flag == other.time_material_bill_flag && time_material_status_flag == other.time_material_status_flag && time_material_assigned_flag == other.time_material_assigned_flag && fixed_fee_budget_hrs_flag == other.fixed_fee_budget_hrs_flag && fixed_fee_scheduled_start_flag == other.fixed_fee_scheduled_start_flag && fixed_fee_scheduled_finish_flag == other.fixed_fee_scheduled_finish_flag && fixed_fee_scheduled_hrs_flag == other.fixed_fee_scheduled_hrs_flag && fixed_fee_actual_start_flag == other.fixed_fee_actual_start_flag && fixed_fee_actual_finish_flag == other.fixed_fee_actual_finish_flag && fixed_fee_actual_hrs_flag == other.fixed_fee_actual_hrs_flag && fixed_fee_bill_flag == other.fixed_fee_bill_flag && fixed_fee_status_flag == other.fixed_fee_status_flag && fixed_fee_assigned_flag == other.fixed_fee_assigned_flag && project_issue_budget_hrs_flag == other.project_issue_budget_hrs_flag && project_issue_scheduled_start_flag == other.project_issue_scheduled_start_flag && project_issue_scheduled_finish_flag == other.project_issue_scheduled_finish_flag && project_issue_scheduled_hrs_flag == other.project_issue_scheduled_hrs_flag && project_issue_actual_start_flag == other.project_issue_actual_start_flag && project_issue_actual_finish_flag == other.project_issue_actual_finish_flag && project_issue_actual_hrs_flag == other.project_issue_actual_hrs_flag && project_issue_bill_flag == other.project_issue_bill_flag && project_issue_status_flag == other.project_issue_status_flag && project_issue_assigned_flag == other.project_issue_assigned_flag && project_detail_total_hours_flag == other.project_detail_total_hours_flag && _info == other._info end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
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 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 422 def _deserialize(type, value) case type.to_sym when :Time Time.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 # models (e.g. Pet) or oneOf klass = ConnectWise.const_get(type) klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.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
493 494 495 496 497 498 499 500 501 502 503 504 505 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 493 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
399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 399 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) self.class.openapi_types.each_pair do |key, type| if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) send("#{key}=", nil) elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize(::Regexp.last_match(1), v) }) if attributes[self.class.attribute_map[key]].is_a?(Array) elsif !attributes[self.class.attribute_map[key]].nil? send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end end self end |
#eql?(other) ⇒ Boolean
379 380 381 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 379 def eql?(other) self == other end |
#hash ⇒ Integer
Calculates hash code according to all attributes.
385 386 387 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 385 def hash [only_display, id, portal_config, project_name_flag, project_type_flag, status_flag, project_manager_flag, billing_method_flag, contact_flag, estimated_start_flag, estimated_end_flag, description_flag, last_updated_flag, time_material_budget_hrs_flag, time_material_scheduled_start_flag, time_material_scheduled_finish_flag, time_material_scheduled_hrs_flag, time_material_actual_start_flag, time_material_actual_finish_flag, time_material_actual_hrs_flag, time_material_bill_flag, time_material_status_flag, time_material_assigned_flag, fixed_fee_budget_hrs_flag, fixed_fee_scheduled_start_flag, fixed_fee_scheduled_finish_flag, fixed_fee_scheduled_hrs_flag, fixed_fee_actual_start_flag, fixed_fee_actual_finish_flag, fixed_fee_actual_hrs_flag, fixed_fee_bill_flag, fixed_fee_status_flag, fixed_fee_assigned_flag, project_issue_budget_hrs_flag, project_issue_scheduled_start_flag, project_issue_scheduled_finish_flag, project_issue_scheduled_hrs_flag, project_issue_actual_start_flag, project_issue_actual_finish_flag, project_issue_actual_hrs_flag, project_issue_bill_flag, project_issue_status_flag, project_issue_assigned_flag, project_detail_total_hours_flag, _info].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
302 303 304 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 302 def list_invalid_properties [] end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
469 470 471 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 469 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
475 476 477 478 479 480 481 482 483 484 485 486 487 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 475 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = send(attr) if value.nil? is_nullable = self.class.openapi_nullable.include?(attr) next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) end hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
463 464 465 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 463 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
308 309 310 311 312 313 |
# File 'lib/connect_wise/models/portal_configuration_project_setup.rb', line 308 def valid? only_display_validator = EnumAttributeValidator.new('String', %w[DoNotDisplay Closed30Days Closed60Days Closed90Days Closed120Days AllClosed]) return false unless only_display_validator.valid?(@only_display) true end |