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.
1673 1674 1675 1676 1677 1678 1679 1680 |
# File 'lib/basecamp/generated/types.rb', line 1673 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.
1666 1667 1668 |
# File 'lib/basecamp/generated/types.rb', line 1666 def app_update_url @app_update_url end |
#app_versions_url ⇒ Object
Returns the value of attribute app_versions_url.
1666 1667 1668 |
# File 'lib/basecamp/generated/types.rb', line 1666 def app_versions_url @app_versions_url end |
#dots ⇒ Object
Returns the value of attribute dots.
1666 1667 1668 |
# File 'lib/basecamp/generated/types.rb', line 1666 def dots @dots end |
#enabled ⇒ Object
Returns the value of attribute enabled.
1666 1667 1668 |
# File 'lib/basecamp/generated/types.rb', line 1666 def enabled @enabled end |
#stale ⇒ Object
Returns the value of attribute stale.
1666 1667 1668 |
# File 'lib/basecamp/generated/types.rb', line 1666 def stale @stale end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
1666 1667 1668 |
# File 'lib/basecamp/generated/types.rb', line 1666 def updated_at @updated_at end |
Class Method Details
.required_fields ⇒ Array<Symbol>
1669 1670 1671 |
# File 'lib/basecamp/generated/types.rb', line 1669 def self.required_fields %i[enabled stale].freeze end |
Instance Method Details
#to_h ⇒ Object
1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 |
# File 'lib/basecamp/generated/types.rb', line 1682 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
1693 1694 1695 |
# File 'lib/basecamp/generated/types.rb', line 1693 def to_json(*args) to_h.to_json(*args) end |