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.
3234 3235 3236 3237 3238 3239 3240 3241 3242 |
# File 'lib/basecamp/generated/types.rb', line 3234 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.
3227 3228 3229 |
# File 'lib/basecamp/generated/types.rb', line 3227 def default_bucket_label @default_bucket_label end |
#default_circle_label ⇒ Object
Returns the value of attribute default_circle_label.
3227 3228 3229 |
# File 'lib/basecamp/generated/types.rb', line 3227 def default_circle_label @default_circle_label end |
#default_creator_label ⇒ Object
Returns the value of attribute default_creator_label.
3227 3228 3229 |
# File 'lib/basecamp/generated/types.rb', line 3227 def default_creator_label @default_creator_label end |
#default_file_type_label ⇒ Object
Returns the value of attribute default_file_type_label.
3227 3228 3229 |
# File 'lib/basecamp/generated/types.rb', line 3227 def default_file_type_label @default_file_type_label end |
#default_type_label ⇒ Object
Returns the value of attribute default_type_label.
3227 3228 3229 |
# File 'lib/basecamp/generated/types.rb', line 3227 def default_type_label @default_type_label end |
#file_search_types ⇒ Object
Returns the value of attribute file_search_types.
3227 3228 3229 |
# File 'lib/basecamp/generated/types.rb', line 3227 def file_search_types @file_search_types end |
#recording_search_types ⇒ Object
Returns the value of attribute recording_search_types.
3227 3228 3229 |
# File 'lib/basecamp/generated/types.rb', line 3227 def recording_search_types @recording_search_types end |
Class Method Details
.required_fields ⇒ Array<Symbol>
3230 3231 3232 |
# File 'lib/basecamp/generated/types.rb', line 3230 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
3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 |
# File 'lib/basecamp/generated/types.rb', line 3244 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
3256 3257 3258 |
# File 'lib/basecamp/generated/types.rb', line 3256 def to_json(*args) to_h.to_json(*args) end |