Class: Basecamp::Types::HillChart
- Inherits:
-
Object
- Object
- Basecamp::Types::HillChart
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
HillChart
Instance Attribute Summary collapse
-
#app_update_url ⇒ Object
Returns the value of attribute app_update_url.
-
#app_versions_url ⇒ Object
Returns the value of attribute app_versions_url.
-
#dots ⇒ Object
Returns the value of attribute dots.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#stale ⇒ Object
Returns the value of attribute stale.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ HillChart
constructor
A new instance of HillChart.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ HillChart
Returns a new instance of HillChart.
2314 2315 2316 2317 2318 2319 2320 2321 |
# File 'lib/basecamp/generated/types.rb', line 2314 def initialize(data = {}) @enabled = parse_boolean(data["enabled"]) @stale = parse_boolean(data["stale"]) @app_update_url = data["app_update_url"] @app_versions_url = data["app_versions_url"] @dots = parse_array(data["dots"], "HillChartDot") @updated_at = parse_datetime(data["updated_at"]) end |
Instance Attribute Details
#app_update_url ⇒ Object
Returns the value of attribute app_update_url.
2307 2308 2309 |
# File 'lib/basecamp/generated/types.rb', line 2307 def app_update_url @app_update_url end |
#app_versions_url ⇒ Object
Returns the value of attribute app_versions_url.
2307 2308 2309 |
# File 'lib/basecamp/generated/types.rb', line 2307 def app_versions_url @app_versions_url end |
#dots ⇒ Object
Returns the value of attribute dots.
2307 2308 2309 |
# File 'lib/basecamp/generated/types.rb', line 2307 def dots @dots end |
#enabled ⇒ Object
Returns the value of attribute enabled.
2307 2308 2309 |
# File 'lib/basecamp/generated/types.rb', line 2307 def enabled @enabled end |
#stale ⇒ Object
Returns the value of attribute stale.
2307 2308 2309 |
# File 'lib/basecamp/generated/types.rb', line 2307 def stale @stale end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
2307 2308 2309 |
# File 'lib/basecamp/generated/types.rb', line 2307 def updated_at @updated_at end |
Class Method Details
.required_fields ⇒ Array<Symbol>
2310 2311 2312 |
# File 'lib/basecamp/generated/types.rb', line 2310 def self.required_fields %i[enabled stale].freeze end |
Instance Method Details
#to_h ⇒ Object
2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 |
# File 'lib/basecamp/generated/types.rb', line 2323 def to_h { "enabled" => @enabled, "stale" => @stale, "app_update_url" => @app_update_url, "app_versions_url" => @app_versions_url, "dots" => @dots, "updated_at" => @updated_at, }.compact end |
#to_json(*args) ⇒ Object
2334 2335 2336 |
# File 'lib/basecamp/generated/types.rb', line 2334 def to_json(*args) to_h.to_json(*args) end |