Class: Nibo::Entry

Inherits:
Object show all
Includes:
ApiResource, ApiResource::Create
Defined in:
lib/nibo/entry.rb

Constant Summary

Constants included from ApiResource

ApiResource::BASE_URL

Class Method Summary collapse

Methods included from ApiResource::Create

#create, included

Methods included from ApiResource

#api_request, #encode, included, #url_encode

Methods inherited from Object

class_name, #create_fields, create_from, #initialize, #metaclass, #refresh_object, #set_properties, #to_hash, #to_json, #to_s, url

Constructor Details

This class inherits a constructor from Nibo::Object

Class Method Details

.object_param(param, method) ⇒ Object



13
14
15
16
17
18
# File 'lib/nibo/entry.rb', line 13

def self.object_param(param, method)
  case method
    when :post
      param
  end
end

.url_method(method) ⇒ Object



6
7
8
9
10
11
# File 'lib/nibo/entry.rb', line 6

def self.url_method(method)
  case method
    when :post
      '/CreateEntry'
  end
end