class Luma::Configuration

Attributes

email[RW]
password[RW]

Public Class Methods

new() click to toggle source
# File lib/luma.rb, line 15
def initialize
  @email    = nil
  @password = nil
end

Public Instance Methods

api_endpoint() click to toggle source
# File lib/luma.rb, line 24
def api_endpoint
  return Connection.base_uri
end
api_endpoint=(endpoint) click to toggle source
# File lib/luma.rb, line 20
def api_endpoint=(endpoint)
  Connection.base_uri(endpoint.freeze)
end
from_h(h) click to toggle source
# File lib/luma.rb, line 36
def from_h(h)
  self.email = h[:email]
  self.password  = h[:password]
  self.api_endpoint = h[:api_endpoint]

  return self
end
to_h() click to toggle source
# File lib/luma.rb, line 28
def to_h
  return {
    email: @email,
    password: @password,
    api_endpoint: api_endpoint
  }
end