Module: Voog

Defined in:
lib/voog_api.rb,
lib/voog_api/error.rb,
lib/voog_api/client.rb,
lib/voog_api/version.rb,
lib/voog_api/api/site.rb,
lib/voog_api/api/tags.rb,
lib/voog_api/api/forms.rb,
lib/voog_api/api/nodes.rb,
lib/voog_api/api/pages.rb,
lib/voog_api/api/texts.rb,
lib/voog_api/api/assets.rb,
lib/voog_api/api/people.rb,
lib/voog_api/api/search.rb,
lib/voog_api/api/layouts.rb,
lib/voog_api/api/tickets.rb,
lib/voog_api/api/articles.rb,
lib/voog_api/api/comments.rb,
lib/voog_api/api/contents.rb,
lib/voog_api/api/elements.rb,
lib/voog_api/api/languages.rb,
lib/voog_api/api/media_sets.rb,
lib/voog_api/api/site_users.rb,
lib/voog_api/api/buy_buttons.rb,
lib/voog_api/api/layout_assets.rb,
lib/voog_api/api/redirect_rules.rb,
lib/voog_api/api/product_widgets.rb,
lib/voog_api/api/content_partials.rb,
lib/voog_api/api/element_definitions.rb

Defined Under Namespace

Classes: API, Client, MovedPermanently

Constant Summary collapse

VERSION =
'0.0.16'

Class Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Class Attribute Details

.api_tokenObject

Returns the value of attribute api_token.



8
9
10
# File 'lib/voog_api.rb', line 8

def api_token
  @api_token
end

.auto_paginateObject

Returns the value of attribute auto_paginate.



8
9
10
# File 'lib/voog_api.rb', line 8

def auto_paginate
  @auto_paginate
end

.hostObject

Returns the value of attribute host.



8
9
10
# File 'lib/voog_api.rb', line 8

def host
  @host
end

.per_pageObject

Returns the value of attribute per_page.



8
9
10
# File 'lib/voog_api.rb', line 8

def per_page
  @per_page
end

Class Method Details

.client(options = {}) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/voog_api.rb', line 10

def client(options = {})
  unless host.nil? && api_token.nil?
    Voog::Client.new(host, api_token, options)
  else
    nil
  end
end

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

Yields:

  • (_self)

Yield Parameters:

  • _self (Voog)

    the object that the method was called on



18
19
20
21
# File 'lib/voog_api.rb', line 18

def configure
  yield self
  true
end

Instance Method Details

#respond_to?(method_name, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


33
34
35
# File 'lib/voog_api.rb', line 33

def respond_to?(method_name, include_private = false)
  client.respond_to?(method_name, include_private) || super
end

#respond_to_missing?(method_name, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/voog_api.rb', line 25

def respond_to_missing?(method_name, include_private = false)
  client.respond_to?(method_name, include_private)
end