Class: Basecamp::Types::CloudFileService
- Inherits:
-
Object
- Object
- Basecamp::Types::CloudFileService
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
CloudFileService
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#example_url ⇒ Object
Returns the value of attribute example_url.
-
#name ⇒ Object
Returns the value of attribute name.
-
#supporting_text ⇒ Object
Returns the value of attribute supporting_text.
-
#valid_patterns ⇒ Object
Returns the value of attribute valid_patterns.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ CloudFileService
constructor
A new instance of CloudFileService.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ CloudFileService
Returns a new instance of CloudFileService.
1295 1296 1297 1298 1299 1300 1301 |
# File 'lib/basecamp/generated/types.rb', line 1295 def initialize(data = {}) @code = data["code"] @example_url = data["example_url"] @name = data["name"] @valid_patterns = data["valid_patterns"] @supporting_text = data["supporting_text"] end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
1288 1289 1290 |
# File 'lib/basecamp/generated/types.rb', line 1288 def code @code end |
#example_url ⇒ Object
Returns the value of attribute example_url.
1288 1289 1290 |
# File 'lib/basecamp/generated/types.rb', line 1288 def example_url @example_url end |
#name ⇒ Object
Returns the value of attribute name.
1288 1289 1290 |
# File 'lib/basecamp/generated/types.rb', line 1288 def name @name end |
#supporting_text ⇒ Object
Returns the value of attribute supporting_text.
1288 1289 1290 |
# File 'lib/basecamp/generated/types.rb', line 1288 def supporting_text @supporting_text end |
#valid_patterns ⇒ Object
Returns the value of attribute valid_patterns.
1288 1289 1290 |
# File 'lib/basecamp/generated/types.rb', line 1288 def valid_patterns @valid_patterns end |
Class Method Details
.required_fields ⇒ Array<Symbol>
1291 1292 1293 |
# File 'lib/basecamp/generated/types.rb', line 1291 def self.required_fields %i[code example_url name valid_patterns].freeze end |
Instance Method Details
#to_h ⇒ Object
1303 1304 1305 1306 1307 1308 1309 1310 1311 |
# File 'lib/basecamp/generated/types.rb', line 1303 def to_h { "code" => @code, "example_url" => @example_url, "name" => @name, "valid_patterns" => @valid_patterns, "supporting_text" => @supporting_text, }.compact end |
#to_json(*args) ⇒ Object
1313 1314 1315 |
# File 'lib/basecamp/generated/types.rb', line 1313 def to_json(*args) to_h.to_json(*args) end |