Class: Basecamp::Types::AccountLogo
- Inherits:
-
Object
- Object
- Basecamp::Types::AccountLogo
- Includes:
- TypeHelpers
- Defined in:
- lib/basecamp/generated/types.rb
Overview
AccountLogo
Instance Attribute Summary collapse
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ AccountLogo
constructor
A new instance of AccountLogo.
- #to_h ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ AccountLogo
Returns a new instance of AccountLogo.
147 148 149 |
# File 'lib/basecamp/generated/types.rb', line 147 def initialize(data = {}) @url = data["url"] end |
Instance Attribute Details
#url ⇒ Object
Returns the value of attribute url.
145 146 147 |
# File 'lib/basecamp/generated/types.rb', line 145 def url @url end |
Instance Method Details
#to_h ⇒ Object
151 152 153 154 155 |
# File 'lib/basecamp/generated/types.rb', line 151 def to_h { "url" => @url, }.compact end |
#to_json(*args) ⇒ Object
157 158 159 |
# File 'lib/basecamp/generated/types.rb', line 157 def to_json(*args) to_h.to_json(*args) end |