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.
1837 1838 1839 1840 1841 1842 1843 1844 |
# File 'lib/basecamp/generated/types.rb', line 1837 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.
1830 1831 1832 |
# File 'lib/basecamp/generated/types.rb', line 1830 def app_update_url @app_update_url end |
#app_versions_url ⇒ Object
Returns the value of attribute app_versions_url.
1830 1831 1832 |
# File 'lib/basecamp/generated/types.rb', line 1830 def app_versions_url @app_versions_url end |
#dots ⇒ Object
Returns the value of attribute dots.
1830 1831 1832 |
# File 'lib/basecamp/generated/types.rb', line 1830 def dots @dots end |
#enabled ⇒ Object
Returns the value of attribute enabled.
1830 1831 1832 |
# File 'lib/basecamp/generated/types.rb', line 1830 def enabled @enabled end |
#stale ⇒ Object
Returns the value of attribute stale.
1830 1831 1832 |
# File 'lib/basecamp/generated/types.rb', line 1830 def stale @stale end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
1830 1831 1832 |
# File 'lib/basecamp/generated/types.rb', line 1830 def updated_at @updated_at end |
Class Method Details
.required_fields ⇒ Array<Symbol>
1833 1834 1835 |
# File 'lib/basecamp/generated/types.rb', line 1833 def self.required_fields %i[enabled stale].freeze end |
Instance Method Details
#to_h ⇒ Object
1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 |
# File 'lib/basecamp/generated/types.rb', line 1846 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
1857 1858 1859 |
# File 'lib/basecamp/generated/types.rb', line 1857 def to_json(*args) to_h.to_json(*args) end |