Class: WebbyNode::WebbyList

Inherits:
APIObject show all
Defined in:
lib/webbynode-api/data.rb

Overview

Represents a list of all Webbies on an account

Author:

  • Shane Sveller

Since:

  • 0.1.0

Version:

  • 0.1.0

Instance Attribute Summary

Attributes inherited from APIObject

#data, #email, #token

Instance Method Summary collapse

Methods inherited from APIObject

#auth_get, #auth_post, auth_post, #method_missing

Constructor Details

#initialize(options = {}) ⇒ WebbyList

Fetches an array of Webbies’ data.

Examples:

Fetch an Array of Webbies

WebbyNode::Webby.new(:email => email, :token => token)

Parameters:

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • :email (String)

    E-mail address used for API access

  • :token (String)

    API token used for API access

Since:

  • 0.1.0



70
71
72
73
# File 'lib/webbynode-api/data.rb', line 70

def initialize(options = {})
  super(options)
  @data = auth_get("/api/xml/webbies")["hash"]["webbies"]
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class WebbyNode::APIObject