Class: Basecamp::Types::SearchMetadata
- Inherits:
-
Object
- Object
- Basecamp::Types::SearchMetadata
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
SearchMetadata
Instance Attribute Summary collapse
-
#default_bucket_label ⇒ Object
Returns the value of attribute default_bucket_label.
-
#default_circle_label ⇒ Object
Returns the value of attribute default_circle_label.
-
#default_creator_label ⇒ Object
Returns the value of attribute default_creator_label.
-
#default_file_type_label ⇒ Object
Returns the value of attribute default_file_type_label.
-
#default_type_label ⇒ Object
Returns the value of attribute default_type_label.
-
#file_search_types ⇒ Object
Returns the value of attribute file_search_types.
-
#recording_search_types ⇒ Object
Returns the value of attribute recording_search_types.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ SearchMetadata
constructor
A new instance of SearchMetadata.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ SearchMetadata
Returns a new instance of SearchMetadata.
3486 3487 3488 3489 3490 3491 3492 3493 3494 |
# File 'lib/basecamp/generated/types.rb', line 3486 def initialize(data = {}) @default_bucket_label = data["default_bucket_label"] @default_circle_label = data["default_circle_label"] @default_creator_label = data["default_creator_label"] @default_file_type_label = data["default_file_type_label"] @default_type_label = data["default_type_label"] @file_search_types = parse_array(data["file_search_types"], "SearchType") @recording_search_types = parse_array(data["recording_search_types"], "SearchType") end |
Instance Attribute Details
#default_bucket_label ⇒ Object
Returns the value of attribute default_bucket_label.
3479 3480 3481 |
# File 'lib/basecamp/generated/types.rb', line 3479 def default_bucket_label @default_bucket_label end |
#default_circle_label ⇒ Object
Returns the value of attribute default_circle_label.
3479 3480 3481 |
# File 'lib/basecamp/generated/types.rb', line 3479 def default_circle_label @default_circle_label end |
#default_creator_label ⇒ Object
Returns the value of attribute default_creator_label.
3479 3480 3481 |
# File 'lib/basecamp/generated/types.rb', line 3479 def default_creator_label @default_creator_label end |
#default_file_type_label ⇒ Object
Returns the value of attribute default_file_type_label.
3479 3480 3481 |
# File 'lib/basecamp/generated/types.rb', line 3479 def default_file_type_label @default_file_type_label end |
#default_type_label ⇒ Object
Returns the value of attribute default_type_label.
3479 3480 3481 |
# File 'lib/basecamp/generated/types.rb', line 3479 def default_type_label @default_type_label end |
#file_search_types ⇒ Object
Returns the value of attribute file_search_types.
3479 3480 3481 |
# File 'lib/basecamp/generated/types.rb', line 3479 def file_search_types @file_search_types end |
#recording_search_types ⇒ Object
Returns the value of attribute recording_search_types.
3479 3480 3481 |
# File 'lib/basecamp/generated/types.rb', line 3479 def recording_search_types @recording_search_types end |
Class Method Details
.required_fields ⇒ Array<Symbol>
3482 3483 3484 |
# File 'lib/basecamp/generated/types.rb', line 3482 def self.required_fields %i[default_bucket_label default_circle_label default_creator_label default_file_type_label default_type_label file_search_types recording_search_types].freeze end |
Instance Method Details
#to_h ⇒ Object
3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 |
# File 'lib/basecamp/generated/types.rb', line 3496 def to_h { "default_bucket_label" => @default_bucket_label, "default_circle_label" => @default_circle_label, "default_creator_label" => @default_creator_label, "default_file_type_label" => @default_file_type_label, "default_type_label" => @default_type_label, "file_search_types" => @file_search_types, "recording_search_types" => @recording_search_types, }.compact end |
#to_json(*args) ⇒ Object
3508 3509 3510 |
# File 'lib/basecamp/generated/types.rb', line 3508 def to_json(*args) to_h.to_json(*args) end |