Class: Basecamp::Types::AccountLogo

Inherits:
Object
  • Object
show all
Includes:
TypeHelpers
Defined in:
lib/basecamp/generated/types.rb

Overview

AccountLogo

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#urlObject

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_hObject



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