Class: NCMB::Devise

Inherits:
DataStore show all
Defined in:
lib/ncmb/device.rb

Constant Summary

Constants included from NCMB

API_VERSION, DOMAIN, SCRIPT_API_VERSION, SCRIPT_DOMAIN

Instance Attribute Summary collapse

Attributes inherited from DataStore

#path

Instance Method Summary collapse

Methods inherited from DataStore

#[], #columns, #count, #delete_all, #each, #each_with_index, #error, #first, #get, #limit, #method_missing, #new, #order, #queries, #skip

Methods included from Query

#where, #withinSquare

Methods included from NCMB

CurrentUser, initialize

Constructor Details

#initialize(client) ⇒ Devise

Returns a new instance of Devise.



6
7
8
9
# File 'lib/ncmb/device.rb', line 6

def initialize(client)
  @client = client
  @name   = "Instration"
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class NCMB::DataStore

Instance Attribute Details

#clientObject

Returns the value of attribute client.



5
6
7
# File 'lib/ncmb/device.rb', line 5

def client
  @client
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/ncmb/device.rb', line 5

def name
  @name
end

Instance Method Details

#pushObject



11
12
13
# File 'lib/ncmb/device.rb', line 11

def push
  return NCMB::Push.new(client)
end