Module: Freshly::Configurable

Included in:
Client
Defined in:
lib/freshly/configurable.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#api_endpointObject

Returns the value of attribute api_endpoint.



3
4
5
# File 'lib/freshly/configurable.rb', line 3

def api_endpoint
  @api_endpoint
end

#api_keyObject

Returns the value of attribute api_key.



3
4
5
# File 'lib/freshly/configurable.rb', line 3

def api_key
  @api_key
end

#auto_paginateObject

Returns the value of attribute auto_paginate.



3
4
5
# File 'lib/freshly/configurable.rb', line 3

def auto_paginate
  @auto_paginate
end

#connection_optionsObject

Returns the value of attribute connection_options.



3
4
5
# File 'lib/freshly/configurable.rb', line 3

def connection_options
  @connection_options
end

#media_typeObject

Returns the value of attribute media_type.



3
4
5
# File 'lib/freshly/configurable.rb', line 3

def media_type
  @media_type
end

#middlewareObject

Returns the value of attribute middleware.



3
4
5
# File 'lib/freshly/configurable.rb', line 3

def middleware
  @middleware
end

#per_pageObject

Returns the value of attribute per_page.



3
4
5
# File 'lib/freshly/configurable.rb', line 3

def per_page
  @per_page
end

#user_agentObject

Returns the value of attribute user_agent.



3
4
5
# File 'lib/freshly/configurable.rb', line 3

def user_agent
  @user_agent
end

Class Method Details

.keysObject



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/freshly/configurable.rb', line 8

def keys
  @keys ||= [
    :api_key,
    :api_endpoint,
    :auto_paginate,
    :connection_options,
    :media_type,
    :per_page,
    :user_agent,
    :middleware
  ]
end

Instance Method Details

#configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



22
23
24
# File 'lib/freshly/configurable.rb', line 22

def configure
  yield self
end