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.
1870 1871 1872 1873 1874 1875 1876 1877 |
# File 'lib/basecamp/generated/types.rb', line 1870 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.
1863 1864 1865 |
# File 'lib/basecamp/generated/types.rb', line 1863 def app_update_url @app_update_url end |
#app_versions_url ⇒ Object
Returns the value of attribute app_versions_url.
1863 1864 1865 |
# File 'lib/basecamp/generated/types.rb', line 1863 def app_versions_url @app_versions_url end |
#dots ⇒ Object
Returns the value of attribute dots.
1863 1864 1865 |
# File 'lib/basecamp/generated/types.rb', line 1863 def dots @dots end |
#enabled ⇒ Object
Returns the value of attribute enabled.
1863 1864 1865 |
# File 'lib/basecamp/generated/types.rb', line 1863 def enabled @enabled end |
#stale ⇒ Object
Returns the value of attribute stale.
1863 1864 1865 |
# File 'lib/basecamp/generated/types.rb', line 1863 def stale @stale end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
1863 1864 1865 |
# File 'lib/basecamp/generated/types.rb', line 1863 def updated_at @updated_at end |
Class Method Details
.required_fields ⇒ Array<Symbol>
1866 1867 1868 |
# File 'lib/basecamp/generated/types.rb', line 1866 def self.required_fields %i[enabled stale].freeze end |
Instance Method Details
#to_h ⇒ Object
1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 |
# File 'lib/basecamp/generated/types.rb', line 1879 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
1890 1891 1892 |
# File 'lib/basecamp/generated/types.rb', line 1890 def to_json(*args) to_h.to_json(*args) end |