Class: NCMB::Devise
Constant Summary
Constants included from NCMB
API_VERSION, DOMAIN, SCRIPT_API_VERSION, SCRIPT_DOMAIN
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
-
#name ⇒ Object
Returns the value of attribute name.
Attributes inherited from DataStore
Instance Method Summary collapse
-
#initialize(client) ⇒ Devise
constructor
A new instance of Devise.
- #push ⇒ Object
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
Methods included from NCMB
Constructor Details
#initialize(client) ⇒ 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
#client ⇒ Object
Returns the value of attribute client.
5 6 7 |
# File 'lib/ncmb/device.rb', line 5 def client @client end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/ncmb/device.rb', line 5 def name @name end |
Instance Method Details
#push ⇒ Object
11 12 13 |
# File 'lib/ncmb/device.rb', line 11 def push return NCMB::Push.new(client) end |