Class: Desk::Api::Brands

Inherits:
Object
  • Object
show all
Includes:
Listable
Defined in:
lib/desk/api/brands.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Listable

#all, #show

Constructor Details

#initialize(connection) ⇒ Brands

Returns a new instance of Brands.



12
13
14
15
16
# File 'lib/desk/api/brands.rb', line 12

def initialize(connection)
  @connection = connection
  @endpoint = "brands"
  @return_class = Desk::Brand
end

Instance Attribute Details

#connectionObject (readonly)

Returns the value of attribute connection.



10
11
12
# File 'lib/desk/api/brands.rb', line 10

def connection
  @connection
end

#endpointObject (readonly)

Returns the value of attribute endpoint.



10
11
12
# File 'lib/desk/api/brands.rb', line 10

def endpoint
  @endpoint
end

#return_classObject (readonly)

Returns the value of attribute return_class.



10
11
12
# File 'lib/desk/api/brands.rb', line 10

def return_class
  @return_class
end